-
-
Notifications
You must be signed in to change notification settings - Fork 206
refactor(select): improve keyboard and events #350
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
… correctly Code coverage depends on TypeScript sourceMap, which we disabled for builds.
c04f8ca to
4903539
Compare
… if value is set without onChange or readOnly
4903539 to
5c18b21
Compare
5c18b21 to
282ac81
Compare
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4bceb5a:
|
…Native BREAKING CHANGE: Select props changed significantly, native is now the SelectNative component
282ac81 to
4bceb5a
Compare
|
🎉 This PR is included in version 4.0.0-beta.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Work in progress for Select component refactor:
<Select native>to<SelectNative>SelectintouseSelectStatehook (only used by Select)useSelectCommon(used by both selects)onChangecallback to pass selected option as the first argument{ fromEvent: Event | React.SyntheticEvent }as the last argument (onOpen,onClose,onChange)StyledInnercomponent instead ofinput(replacesSelectDisplayPropsprop)inputPropsto allow spreading of props on theinputelementlabelIdin favor ofaria-labelledbyI've also changed the Select story to list all Pokémon, so typing can be tested.
Storybook