-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Tooltip on label immediately closing in iOS 14 Safari and Chrome #3889
Tooltip on label immediately closing in iOS 14 Safari and Chrome #3889
Comments
I'm not sure what you expect here.
FYI, as a workaround you can always trigger tooltips manually whenever necessary → https://ng-bootstrap.github.io/#/components/tooltip/examples#triggers |
I think I see what you mean actually for the label. After clicking the label it should focus the input and keep the tooltip open, right? It works fine if you put |
Yes, you are spot one. There is a timing issue. It looks to be a wider issue that also affects Windows touch in Chrome. For now we're are using media queries to check if the primary input type is touch and swap the trigger to click from hover. |
I think the tooltips behavior are not working as expected in this library: bootstrap tooltip ng-bootstrap tooltip Using the default behavior exemple : DESKTOPbootstrap : ng-bootstrap : IOSbootstrap : ng-bootstrap : Androidbootstrap : ng-bootstrap : I believe the bootstrap behavior is the correct one, I shouldn't need to setup manual inputs to have the default behavior of native bootstrap. Also, I might be wrong here, but with manual triggers I can't set a trigger depending on the viewport (click on sm and hover on lg) |
Clicking on the element that opens tooltip essentially disables the tooltip closing trigger. Fixes ng-bootstrap#3889
If several triggers are set, ex. 'hover focus', make sure that all triggers are taken into account for closure and not only the first one. Ex: mouseout on the triggering element, should not close the tooltip while the element is focused; and focus leaving the element should not close the tooltip while the mouse is still hovering it. Fixes ng-bootstrap#3889
If several triggers are set, ex. 'hover focus', make sure that all triggers are taken into account for closure and not only the first one. Ex: mouseout on the triggering element, should not close the tooltip while the element is focused; and focus leaving the element should not close the tooltip while the mouse is still hovering it. Fixes ng-bootstrap#3889
If several triggers are set, ex. 'hover focus', make sure that all triggers are taken into account for closure and not only the first one. Ex: mouseout on the triggering element, should not close the tooltip while the element is focused; and focus leaving the element should not close the tooltip while the mouse is still hovering it. Fixes #3889
Please remember, the issues forum is NOT for support requests. It is for bugs and feature requests only.
Please read https://github.com/ng-bootstrap/ng-bootstrap/blob/master/CONTRIBUTING.md and search
existing issues (both open and closed) prior to opening any new issue and ensure you follow the instructions therein.
Bug description:
Adding a tooltip to the label of an input doesn't work on iOS 14 Safari.
When the label is touched, the tooltip momentarily appears before it is hidden. Then no other tooltips on the page then will open.
There is no issue with Chrome on Android 10.
Link to minimally-working StackBlitz that reproduces the issue:
https://angular-bvaa3d.stackblitz.io
You can fork a StackBlitz from one of our demos and use it as a starting point.
Please note that we can not act on bug reports without a minimal reproduction scenario in a StackBlitz. Here is why:
https://github.com/ng-bootstrap/ng-bootstrap#you-think-youve-found-a-bug
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 10
ng-bootstrap: 8
Bootstrap: (see stackblitz)
The text was updated successfully, but these errors were encountered: