-
Notifications
You must be signed in to change notification settings - Fork 5
Fix logout dropdown hide on outside click #565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is because, earlier that dropdown was not getting focused, thats the behaviour of focus. It will work in accessibility behaviour as well, like going through tab hitting tab will focus the dropdown itself. @callmekatootie |
Ok. But we are not expecting any focus to happen - the expectation is that the dropdown closes when clicked outside. It should not have any side effects |
This is the only clean solution I found. others require event on top document, and may not work always. @callmekatootie . Here the side effect is in the correct way. Because what you asking is when ever user focus goes out of that dropdown, it should close. thats the behaviour it is doing. Earlier that was not the case. |
I see. Could we then disable the outline using CSS when the element is in focus... |
ok, I will update the css. |
@sanju-singh Is this ready for review again... (If so, remove the Feedback label to get my attention 😊 ) |
@callmekatootie , yes, I updated in issue, forgot to update here. Thanks |
#45