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: close popup gracefully with Esc key #1990

Merged

Conversation

kungfux
Copy link
Collaborator

@kungfux kungfux commented Oct 12, 2024

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

Problem: Closing a popup by pressing Esc is not handled correctly.

Scenario:

  • Open blog post on mobile view
  • Click Contents
  • Close popup with Esc key

Expected: Popup is closed with animation.
Actual/Problem: Popup is closed without animation.

  • Click Contents again

Expected: Popup can be opened again.
Actual/Problem: Popup is being closed on open (for the first time after closing). See recording attached.

Recording

popup-esc

Ref #1964

@kungfux kungfux force-pushed the bugfix/handle-popup-close-by-esc branch from 44e5253 to 7a7f52a Compare October 13, 2024 15:27
@cotes2020 cotes2020 merged commit 03e302c into cotes2020:master Oct 13, 2024
7 checks passed
@kungfux kungfux deleted the bugfix/handle-popup-close-by-esc branch October 13, 2024 17:28
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.

2 participants