-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[fields] Extract the props of each field slot into a standalone hook for easier re-use #17114
[fields] Extract the props of each field slot into a standalone hook for easier re-use #17114
Conversation
Thanks for adding a type label to the PR! 👍 |
event.preventDefault(); | ||
return; | ||
} | ||
const handleRootKeyDown = useEventCallback((event: React.KeyboardEvent<HTMLDivElement>) => { |
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.
I'm keeping the props.onKeyDown?.(event)
(and equivalents) here because on Base UI it's handled automatically so I can't have it in the shared code.
Deploy preview: https://deploy-preview-17114--material-ui-x.netlify.app/ |
2a228e9
to
a32ae3b
Compare
…mplementation can re-use
a32ae3b
to
18a5d1a
Compare
77ac57b
to
8494df2
Compare
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
Based on #14679
No behavior change