-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically close a Dropdown when user clicks outside #552
Comments
I can do this . Please assign it to me. |
That would be great, thanks a lot! Just in case it can help, we were thinking of having a look at the availability of the new PatternFly Dropdown component first.
Done! |
Please, bear in mind that you have to work on top of the |
Yes, you can create a PR through |
Just in case you still interested on this issue, please be aware that |
@Anandpandey0 just out of curiosity, are you finally playing with this one? |
Hey there, Can I take this over if @Anandpandey0 is no longer interested? |
To be honest, I do not know whether @Anandpandey0 is still interested. I would wait 1 or 2 weeks more and, if there is no response, I would reassign the issue to you, @balsa-asanovic. |
Sure, let's do that |
OK, as @Anandpandey0 is not responding, I guess we can reassign this issue to @balsa-asanovic. Please, let us know whether you are still interested. Thanks! |
Hey @imobachgs, yeah definitely, assign away 😄 |
Hey @dgdavid @imobachgs , I wasn't sure should I tag some for pull request review, so here it is 😄 I've addressed this issue in PR #671 |
We usually keep an eye on the projects' pull request list, but feel free to assign the review to any of us just to be sure 😉
Thanks! |
Great, thanks for the info! |
After #545 be merged in master branch, the page options will be shown by using a PatternFly
Dropdown
placed close to the hamburger menu icon to open/close the sidebar.The user can click on the arrow down icon to open the menu holding the options related to the current page. But this dropdown will be closed only when
Ideally, it should be closed automatically when clicking outside the dropdown itself too (right after losing the focus). At this time there is no prop (or I overlooked it) to tell the component to do so. But, looking at the source code it looks to me that current
PatternFly Dropdown
is/will be deprecated in favor of another that has aonOpenChange
prop that might help to achieve the mentioned behavior. Have to check/test it better.patternfly/patternfly-react@d43cf24
In any case, we should evaluate a way to automatically close that menu, although it is more a nice to have than a requirement for me.
The text was updated successfully, but these errors were encountered: