Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(dialog): correctly disable keydown listener for escapeToClose #7222

Closed

Conversation

devversion
Copy link
Member

Currently there was a duplicated variable target, which got replaced after some execution and the actual target variable became assigned to the element variable, not to the parent anymore.

That's caused because in JS there is no block scope, only function scope.

Fixes #7214 Fixes #5153

Currently there was a duplicated variable `target`, which got replaced later and the `target` variable became the actual `element` not the `parent` anymore.

Fixes angular#7214 Fixes angular#5153
@devversion devversion added the pr: merge ready This PR is ready for a caretaker to review label Feb 24, 2016
@ThomasBurleson ThomasBurleson added this to the 1.0.6 milestone Feb 26, 2016
ThomasBurleson pushed a commit that referenced this pull request Feb 26, 2016
Currently there was a duplicated variable `target`, which got replaced later and the `target` variable became the actual `element` not the `parent` anymore.

Fixes #7214 Fixes #5153

  Closes #7222
@devversion devversion deleted the fix/dialog-escape-unregister branch April 19, 2016 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants