-
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
Dropdown: Tweak prop destructuring to be TypeScript friendly #38431
Conversation
Size Change: +5 B (0%) Total Size: 1.14 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.
The destructuring after this change looks semantically the same (I also have a personal preference for it happening in the body of the function, so that the props
object is available for potential future changes, too), so this LGTM!
Also quickly smoke tested in the editor and storybook that the Dropdown component still works correctly 👍
Changelog for this will be added via: #38469 |
Related: #37769
Description
As part of implementing new typed border control components, they needed a dropdown. The change in this PR to destructuring the dropdown's props eliminates a TypeScript error avoiding any need for typing the dropdown component until we're ready.
Testing Instructions
Types of changes
Enhancement
Checklist:
*.native.js
files for terms that need renaming or removal).