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 }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
@stuartforster, i can confirm that the event is not fired when keypress is used. i will also confirm that changing to keyup or keydown does not cause the tooltip/popover to be closed.
what trigger do you expect this to work with? also, please note that any code change will require tests.
@stuartforster, after a thorough investigation, it appears the tooltip reference inside the close handling sequence is not defined meaning when the actual close route is executed, nothing happens and the tooltip stays open.
Here's a plunker to get you started. I've already set the event to keyup. Set a breakpoint at line 4724 and trace through and you'll see that ultimately the reference to tooltip is not defined which results in 4988 not being executed.
There is an issue with Chrome and potentially other browsers with capturing 'escape' for a 'keypress' event.
This is preventing the ui-bootstrap tooltip (and popovers) from closing on press of escape key.
This should be changed to keydown or keyup here: https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L74
I will submit a PR with a fix shortly.
The text was updated successfully, but these errors were encountered: