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 Lightbox being opened with improper keypress #2258

Merged
merged 1 commit into from Jan 31, 2022

Conversation

AnthonyLedesma
Copy link
Member

Description

The Lightbox uses event listeners to navigate. Changes here remove the listener when the lightbox is closed.

Types of changes

JavaScript. Refactor from using deprecated standard .keyCode to using .code property.

How has this been tested?

Tested manually.

Checklist:

  • My code is tested
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've included any necessary tests
  • I've included developer documentation
  • I've added proper labels to this pull request

@cypress
Copy link

cypress bot commented Jan 31, 2022



Test summary

200 0 1 0


Run details

Project CoBlocks
Status Passed
Commit 34032c7
Started Jan 31, 2022 5:01 PM
Ended Jan 31, 2022 5:05 PM
Duration 04:17 💡
OS Linux Debian - 11.1
Browser Firefox 93

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@AnthonyLedesma AnthonyLedesma merged commit 6887411 into master Jan 31, 2022
@AnthonyLedesma AnthonyLedesma deleted the fix-lightbox-keyboard-listeners branch January 31, 2022 18:31
@AnthonyLedesma AnthonyLedesma added this to the 2.21.5 milestone Jan 31, 2022
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.

ISBAT close Lightbox and have it remain closed until interacted with
2 participants