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

SpinButton: add example for input onChange/onBlur behavior #22887

Closed
spmonahan opened this issue May 6, 2022 · 1 comment
Closed

SpinButton: add example for input onChange/onBlur behavior #22887

spmonahan opened this issue May 6, 2022 · 1 comment
Assignees

Comments

@spmonahan
Copy link
Contributor

Problem

SpinButton needs a demo showing how a user can listen for onChange/onBlur (or really any event) on the input. By default SpinButton does not dispatch a change event for every keystroke on its input only on value commits (enter press for example). This is the cut down on "noise" in the onChange event listener.

Solution

Users can listen for every keystroke by attaching an onChange listener to the input slot.

@spmonahan
Copy link
Contributor Author

@microsoft microsoft locked as resolved and limited conversation to collaborators Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant