Skip to content

[checkbox][switch][slider] Fix extra validate fn calls - #4911

Merged
atomiks merged 3 commits into
mui:masterfrom
mj12albert:fix-extra-validate-fn-calls
May 27, 2026
Merged

atomiks merged 3 commits into
mui:masterfrom
mj12albert:fix-extra-validate-fn-calls

Conversation

@mj12albert

Copy link
Copy Markdown
Member

Fixes 4902

@mj12albert mj12albert added component: switch Changes related to the switch component. component: slider Changes related to the slider component. type: bug It doesn't behave as expected. component: checkbox Changes related to the checkbox component. labels May 26, 2026
@pkg-pr-new

pkg-pr-new Bot commented May 26, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@4911
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4911
    

commit: 5be2af6

@code-infra-dashboard

code-infra-dashboard Bot commented May 26, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react ▼-45B(-0.01%) ▼-17B(-0.01%)

Details of bundle changes

Performance

Total duration: 1,301.78 ms -129.24 ms(-9.0%) | Renders: 50 (+0) | Paint: 1,984.83 ms -149.08 ms(-7.0%)

Test Duration Renders
Tooltip mount (300 contained roots) 46.77 ms ▼-16.29 ms(-25.8%) 1 (+0)

11 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented May 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 5be2af6
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a16a5b327e0b10008c0d809
😎 Deploy Preview https://deploy-preview-4911--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@mj12albert
mj12albert marked this pull request as ready for review May 26, 2026 14:28

@atomiks atomiks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove getInputValidationProps with a refactor, I'll try it.

@atomiks
atomiks merged commit 2b68bf3 into mui:master May 27, 2026
6 checks passed
@mj12albert
mj12albert deleted the fix-extra-validate-fn-calls branch July 8, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: checkbox Changes related to the checkbox component. component: slider Changes related to the slider component. component: switch Changes related to the switch component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[checkbox][switch][slider] Checkbox, Switch, and Slider validate twice from a single user interaction

2 participants