Skip to content
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

Cannot reliably dismiss data-trigger="focus" popover in Mobile Safari / iOS #18877

Closed
natevw opened this issue Jan 13, 2016 · 2 comments
Closed
Labels

Comments

@natevw
Copy link

natevw commented Jan 13, 2016

A popover with data-trigger="focus" like the following, cannot be dismissed on iOS without clicking on another focusable element (e.g. button/link):

<a tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus" title="Dismissible popover" data-content="Popup content">Dismissible popover</a>

Try it via the documentation demo itself for Dismiss on next click where this code sample was taken. This is probably related to #7819 but in the case of popovers, the workaround there ("you have to tap the dropdown again in mobile") does not work.

Ideally, it should be possible to dismiss such a popover by just tapping anywhere else on the page as you can in other browsers. It seems that Mobile Safari might not "unleash" focus on an element quite so easily though.

@natevw natevw changed the title Cannot reliably dismiss data-trigger="focus" popover in Mobile Safari (iOS) Cannot reliably dismiss data-trigger="focus" popover in Mobile Safari / iOS Jan 13, 2016
@natevw
Copy link
Author

natevw commented Jan 13, 2016

@cvrebert
Copy link
Collaborator

Approximate duplicate of #16028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants