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
First off, thanks for your great product. Here is the issue I found with the dropdowns:
Dropdown with auto close on ESC keypress does not stopPropagation nor stopImmediatePropagation for the keyDown event if escape was pressed with an opened dropdown.
I've looked at the autoclose.ts source file, it only does a preventDefault, which will not stop other listeners from triggering. (as stopImmediatePropagation would)
For example, a program may have setup window.addEventListener('keydown', (p_event) => {blablabla}); for doing something on escape, but not if a dropdown was opened. Which it should only close and prevent any other effects happening from this keypress.
Bug description:
First off, thanks for your great product. Here is the issue I found with the dropdowns:
Dropdown with auto close on ESC keypress does not stopPropagation nor stopImmediatePropagation for the keyDown event if escape was pressed with an opened dropdown.
I've looked at the autoclose.ts source file, it only does a preventDefault, which will not stop other listeners from triggering. (as stopImmediatePropagation would)
For example, a program may have setup window.addEventListener('keydown', (p_event) => {blablabla}); for doing something on escape, but not if a dropdown was opened. Which it should only close and prevent any other effects happening from this keypress.
This was the default behavior in the old https://angular-ui.github.io/bootstrap/ for angularJS
Is this a know issue? are there any workarounds?
The text was updated successfully, but these errors were encountered: