-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Popovers: triggers click and focus can't be combined #39010
Comments
Hey there, Thanks a lot for your contribution. If I misunderstood something here, please make sure to provide a CodePen to better illustrate your issue. |
So I've just did a CodePen : https://codepen.io/drakou/pen/zYyOPYo with "click focus" combined. |
Thanks a lot for providing a CodePen! In this case if you click twice, you still have the focus on th trigger so the popover still display. If you clicked an even number of time on the trigger and click elsewhere (or move the focus in another way) the popover disappear. I think it's the intended behavior. Am I missing something ? |
Ah, for me this is not a logical behavior... |
Yeah, I think Bootstrap doesn't provide the code but mention that we should |
Prerequisites
Describe the issue
The documentation says : "How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. manual cannot be combined with any other trigger."
But if you set data-bs-trigger="click focus" the click trigger doesn't work, only the focus trigger works.
I mean if you click again the button to close the popover, it doesn't close.
Bootstrap 5.3.0
Reduced test cases
Can take the example: https://getbootstrap.com/docs/5.0/components/popovers/#dismiss-on-next-click
and for the red "Dismissable popover" button, replace data-bs-trigger="focus" to data-bs-trigger="click focus".
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.0
The text was updated successfully, but these errors were encountered: