Hello,
I have a dropdown menu in a component I want to close on clickaway. The same dropdown menu exists in another component. When I click the button of the dropdown menu in the first component and after that the button of the dropdown menu in the other component both dropdowns are open. I would expect to have the first dropdown to close when I click on the second dropdown. But when I do it the other way around the expected behaviour is correct.
How can I fix this?
Hello,
I have a dropdown menu in a component I want to close on clickaway. The same dropdown menu exists in another component. When I click the button of the dropdown menu in the first component and after that the button of the dropdown menu in the other component both dropdowns are open. I would expect to have the first dropdown to close when I click on the second dropdown. But when I do it the other way around the expected behaviour is correct.
How can I fix this?