You need to sign in to do that
Don't have an account?
shivram survase
How to close the parent LWC component from child LWC component popup model on button click.?
I have a lightning Web component like this:
Component A: Parent Component
Component B: Child Component
I'm calling Component B from Component A on button click.
I want to implent either of the below. Any suggestions/help appreciated.
1. I want to close the Component A automatically when Component B popup model is showed up on button click.
2. Else I want close the Component A automatically when Component B popup model is closed.
Component A: Parent Component
Component B: Child Component
I'm calling Component B from Component A on button click.
I want to implent either of the below. Any suggestions/help appreciated.
1. I want to close the Component A automatically when Component B popup model is showed up on button click.
2. Else I want close the Component A automatically when Component B popup model is closed.
Check below example.
https://developer.salesforce.com/forums/?id=9060G0000005qnBQAQ
Please mark as Best Answer if above information was helpful.
Thanks,
It's not possible, bceause Component B is embedded in Componnent A, if you try to close Component A then ComponentB will automatically close.
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh