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

chore(storybook): Prevent keyDown propagation with hidden suggestion dropdown #919

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

rfgamaral
Copy link
Member

Overview

Both the Mention and Hashtag suggestion dropdowns have an issue where any keyDown event is propagated to the dropdown renderer component after the dropdown has been hidden. This PR fixes that by detecting whether the dropdown is hidden or not, and disallowing the keyDown event propagation in case it's hidden.

Note

This does not affect the production Typist build, it only fixes the Storybook examples.

PR Checklist

@rfgamaral rfgamaral added the ⛴ Ship PR Used for PRs that don't need a review and can be merged when CI is green. label Sep 30, 2024
@rfgamaral rfgamaral self-assigned this Sep 30, 2024
Copy link

netlify bot commented Sep 30, 2024

Deploy Preview for doist-typist ready!

Name Link
🔨 Latest commit 983b772
🔍 Latest deploy log https://app.netlify.com/sites/doist-typist/deploys/66fa8dc029d3ae0008623cbe
😎 Deploy Preview https://deploy-preview-919--doist-typist.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rfgamaral rfgamaral force-pushed the ricardo/review-suggestion-examples branch from 2df5657 to 983b772 Compare September 30, 2024 11:38
@rfgamaral rfgamaral changed the title chore: Prevent keyDown propagation with hidden suggestion dropdown chore(storybook): Prevent keyDown propagation with hidden suggestion dropdown Sep 30, 2024
@rfgamaral rfgamaral enabled auto-merge (squash) September 30, 2024 11:38
@rfgamaral rfgamaral merged commit 542d29b into main Sep 30, 2024
10 checks passed
@rfgamaral rfgamaral deleted the ricardo/review-suggestion-examples branch September 30, 2024 11:40
@doistbot
Copy link
Member

🎉 This PR is included in version 7.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@doistbot doistbot added the released Pull requests that have been released to production label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Pull requests that have been released to production ⛴ Ship PR Used for PRs that don't need a review and can be merged when CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants