-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
components: Convert Select to TypeScript #33784
components: Convert Select to TypeScript #33784
Conversation
Size Change: +15 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
@@ -1,8 +1,10 @@ | |||
/** | |||
* External dependencies | |||
*/ | |||
import { isEmpty, noop } from 'lodash'; | |||
import { isEmpty, noop, omit } from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realised this — can the omit
import be removed now? I don't see any further usages.
We may want to apply this change directly in #33696
* components: InputControl to TypeScript * Add back event to onChange * Fix on validate and remove todo * Remove cast and allow undefined values * Add explanatory comment for omitting prefix * Use currentTarget * components: Convert Select to TypeScript (#33784) * Convert Select to TypeScript * Stop spreading props into InputBase and add all HTML attributes for select * Remove need for `omit` * Remove unused import * Consistently use currentTarget * Require isFocused props
Description
Converts the SelectControl to TypeScript. Depends on the InputControl conversion.
I did this as part of #33714 so just splitting it into a separate PR.
How has this been tested?
Types should pass. There are no runtime changes 🙂
Types of changes
Code quality
Checklist:
*.native.js
files for terms that need renaming or removal).