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

[Slider] Ensure onValueCommitted is called with the same value as latest onValueChange #1296

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

mj12albert
Copy link
Member

@mj12albert mj12albert commented Jan 7, 2025

Before: https://codesandbox.io/p/sandbox/agitated-bose-mmg387

After: https://codesandbox.io/p/sandbox/gallant-thunder-mwkts8

Adapted @good-jinu's fix from mui/material-ui#44795 which ensures onValueCommitted is called with the same value as the latest onValueChange

The bug is easily reproducible by flicking the thumb along the track quickly on a touch device

@mj12albert mj12albert added component: slider This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work labels Jan 7, 2025
@mui-bot
Copy link

mui-bot commented Jan 7, 2025

Netlify deploy preview

https://deploy-preview-1296--base-ui.netlify.app/

Generated by 🚫 dangerJS against c7dd8c3

@mj12albert mj12albert changed the title fix/slider-change-committed [Slider] Ensure onValueCommitted is called with the same value as latest onValueChange Jan 7, 2025
@mj12albert mj12albert marked this pull request as ready for review January 7, 2025 08:41
@mj12albert mj12albert merged commit 2e87d21 into mui:master Jan 7, 2025
23 checks passed
@mj12albert mj12albert deleted the fix/slider-change-committed branch January 7, 2025 11:23
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: slider This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants