Skip to content

Conversation

@atomiks
Copy link
Contributor

@atomiks atomiks commented Nov 30, 2025

Fixes #3369. Reworks logic to avoid floating point precision bugs with fractional step snapping

https://stackblitz.com/edit/vitejs-vite-fydiznkt

@atomiks atomiks added component: number field Changes related to the number field component. type: bug It doesn't behave as expected. labels Nov 30, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 30, 2025

  • vite-css-base-ui-example

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

commit: 604dee9

@mui-bot
Copy link

mui-bot commented Nov 30, 2025

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 🔺+374B(+0.09%) 🔺+124B(+0.10%)

Details of bundle changes


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

@netlify
Copy link

netlify bot commented Nov 30, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 604dee9
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/692fe145045a5a0008e0cea6
😎 Deploy Preview https://deploy-preview-3375--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@atomiks atomiks marked this pull request as ready for review November 30, 2025 22:40
@mnajdova mnajdova requested a review from mj12albert December 2, 2025 08:10
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

@atomiks
Copy link
Contributor Author

atomiks commented Dec 3, 2025

@LukasTy that's essentially what's being done here, but generalized and handles arbitrary steps/formatting precision

@atomiks atomiks merged commit af1c4a8 into mui:master Dec 3, 2025
22 checks passed
@atomiks atomiks deleted the fix/number-field-fractional-step branch December 3, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: number field Changes related to the number field component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[number field] snapOnStep with decimal step causes increment/decrement to get stuck

3 participants