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

[material-ui][SwitchBase] Fix spreading of handlers in getSlotProps #45197

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Feb 3, 2025

handlers was spread in root slot but i think it got missed in input slot

root slot:

getSlotProps: (handlers) => ({
...handlers,
onFocus: (event) => {
handlers.onFocus?.(event);
handleFocus(event);

input slot:

getSlotProps: (handlers) => ({
onChange: (event) => {
handlers.onChange?.(event);

@sai6855 sai6855 added bug 🐛 Something doesn't work component: switch This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Feb 3, 2025
@sai6855 sai6855 requested a review from siriwatknp February 3, 2025 18:39
@mui-bot
Copy link

mui-bot commented Feb 3, 2025

Netlify deploy preview

https://deploy-preview-45197--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 48e990e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: switch This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants