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

Set value by keyboard #81

Merged
merged 1 commit into from Jan 17, 2023

Conversation

kevin-kientopp
Copy link
Contributor

@kevin-kientopp kevin-kientopp commented Jan 6, 2023

What was changed

Moved setValue to input's onChange from the label's onClick. This allows the user to set the value with either their keyboard or with their mouse.

Why?

Using the keyboard arrow keys appears to change the selection, but the setValue function is not invoked.

Checklist

  1. Closes [Bug] Value should be able to be set by keyboard #80

  2. How was this tested:

Interacted with the component in storybook.

  1. Any docs updates needed?

No.

Moved setValue to input's onChange from the label's onClick. This allows
the user to set the value with either their keyboard or with their
mouse.
@lorensr
Copy link
Owner

lorensr commented Jan 17, 2023

Nice, thank you! ☺️

@lorensr lorensr merged commit feb07bc into lorensr:master Jan 17, 2023
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.

[Bug] Value should be able to be set by keyboard
2 participants