You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tooltips can't be dismissed in mobile Safari #6153
When I press on a tooltip link in the web console create form, I can't dismiss the tooltip, and it covers form fields. Pressing elsewhere on the page or on the link again doesn't hide the tooltip. The only workaround I've found is press another link or button.
touchstart on the body element doesn't always fire in my testing. I'm guessing something is stopping event propagation.
How do you feel about this fix? It's a bit hacky, but seems to work well.
// Workaround for tooltips and popovers not closing when the screen is
// touched elsewhere. Specifically target iOS to avoid changing the cursor
// on other devices like touch-enabled laptops.
if (navigator.userAgent.match(/(iphone|ipad)/i)) {
$('body').css('cursor', 'pointer');
}
Activity
spadgett commentedon Dec 2, 2015
This is a known Bootstrap issue.
spadgett commentedon Dec 2, 2015
No click event is firing when you tap outside the tooltip.
https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
jwforres commentedon Dec 2, 2015
Pretty sure we worked around this in v2 by doing this (making use of
touchstart event):
https://github.com/openshift/origin-server/blob/master/admin-console/app/views/admin_console/index/_welcome.html.haml#L62
On Wed, Dec 2, 2015 at 11:05 AM, Sam Padgett [email protected]
wrote:
spadgett commentedon Dec 2, 2015
touchstarton thebodyelement doesn't always fire in my testing. I'm guessing something is stopping event propagation.How do you feel about this fix? It's a bit hacky, but seems to work well.
liggitt commentedon Dec 2, 2015
?
spadgett commentedon Dec 2, 2015
@liggitt See my link above for why it works
https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
Not sure it's the best fix...
jwforres commentedon Dec 12, 2016
@spadgett i prefer the version in this comment where the hack CSS is only added while the popup is visible twbs/bootstrap#16028 (comment)