Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix accidental null of amp-image-lightbox keyboard listener #7052

Merged
merged 1 commit into from
Jan 18, 2017
Merged

Fix accidental null of amp-image-lightbox keyboard listener #7052

merged 1 commit into from
Jan 18, 2017

Conversation

jacobwgillespie
Copy link
Contributor

Fixes #7050. See there for more details, but the gist is that if you open then close a lightbox, the internal event listener was previously set to null, which prevented the escape key from closing the lightbox on any future opens.

@aghassemi aghassemi self-assigned this Jan 17, 2017
@aghassemi aghassemi self-requested a review January 17, 2017 18:09
Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@aghassemi aghassemi merged commit a456ff8 into ampproject:master Jan 18, 2017
@jacobwgillespie jacobwgillespie deleted the lightbox-escape-fix branch January 18, 2017 17:35
jridgewell pushed a commit to jridgewell/amphtml that referenced this pull request Jan 31, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lightbox only closes with escape key on first close
2 participants