-
-
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
Popover with data-trigger:focus not close when click in button again. Usability? #16802
Comments
The problem here would be that if focus is what is triggering the popover, then clicking the same trigger again would still keep the focus on the trigger. To modify the current implementation would require to keep track somehow of "although this trigger has focus, we've already shown the popover and the user clicked on the trigger again, so don't show the popover again", which would also need to be reset as soon as focus eventually leaves the trigger (e.g. if the user clicked on something else). Not quite sure it's worth the implementation pain... |
Htmm.. well, with div.modal-backdrop (transparent) not is good, why need to click two time in another button in page. |
Bootstrap 3 is no longer being officially developed or supported. All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4! <3, |
This issue still happens in v4, so I definitely think it should be kept open. |
$('[data-trigger="manual"]').click(function() {
$(this).popover('toggle');
}).blur(function() {
$(this).popover('hide');
}); |
Cannot get it to work 😞 |
Any news about it? |
Facing same issue in v4. Cannot close popover on clicking button again if An update on this would be appreciated |
Suppose my popover is mapped with ID "settingMenuPopover" and trigger is set as 'focus'. Then this handling of popover open and close work for me :
|
A more optimized way to achieve the same thing:
|
You can use focus and click together. |
Usability improvise if close popover when button is clicked again, equal behavior without data-trigger.
Or new mini button with icon close in top-right in popover
The text was updated successfully, but these errors were encountered: