Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Don't stop ESC propagation unless dropdown is open #3179

Closed
wants to merge 2 commits into from

Conversation

MikeMatusz
Copy link
Contributor

In reference to issue #3096
If the escape key should have other functionality in the context of a form (for example, if datepicker is on a modal) it makes sense to prevent this from happening if escape is used to close the dropdown. If the dropdown is closed, however, the event should be allowed to propagate.

In reference to issue angular-ui#3096
If the escape key should have other functionality in the context of a form (for example, if datepicker is on a modal) it makes sense to prevent this from happening if escape is used to close the dropdown.  If the dropdown is closed, however, the event should be allowed to propagate.
@karianna
Copy link
Contributor

Hi @MikeMatusz - Are you able to add a test case for this?

@MikeMatusz
Copy link
Contributor Author

Sure thing. Test case added.

@karianna karianna added this to the 0.13 milestone Jan 13, 2015
@chrisirhc chrisirhc closed this in c2e5b28 Mar 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants