angular-multi-select
angular-multi-select copied to clipboard
Prevent default when escape button is pressed?
I have a situation where component is used inside of the modal window. When I click on the button, the popup selector is shown. However, when I press escape key to close the selector, the modal dialog is closed instead.
Maybe we should prevent event propagation? Of couse it should be done only if component is actually focused and selector is opened.
I've tried to experiment with the native <select> element. It behaves as I described in Google Chrome. When you click the escape when list is expanded - the list collapses, but event is not propagating further. I think is is a correct behavior that ensures good usability.
@slavafomin ,
Thanks for the feedback, I never thought of this before. We'll see what I can do.
So is that possible to catch last clicked element in event?