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: native focus and blur events #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gavmck
Copy link

@gavmck gavmck commented Feb 11, 2025

The VueSliderDot component is being passed nativeOnFocus and nativeOnBlur events as props, but these props don't exist.

In Vue 3, all unhandled event emitters are bound to the native events automatically so we can use @focus and @blur and then keyboard navigation works as expected when tabbing to the slider component.

Currently, the keyboard events do not work until you click the slider first, which is no good for keyboard navigators.

Fixes #12

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for vue-3-slider-component ready!

Name Link
🔨 Latest commit 42aaf79
🔍 Latest deploy log https://app.netlify.com/sites/vue-3-slider-component/deploys/67ab20247bc6eb00080623ef
😎 Deploy Preview https://deploy-preview-13--vue-3-slider-component.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.

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.

Keyboard interaction only works after click
1 participant