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][Slider] Fix arrow keys past the end for Slider with custom marks #45050

Merged
merged 6 commits into from
Jan 22, 2025

Conversation

joshkel
Copy link
Contributor

@joshkel joshkel commented Jan 17, 2025

Fixes #45049

@joshkel joshkel force-pushed the slider-custom-marks-nan branch from 9482667 to 48c4b12 Compare January 17, 2025 19:28
@ZeeshanTamboli ZeeshanTamboli added the component: slider This is the name of the generic UI component, not the React module! label Jan 18, 2025
@mui-bot
Copy link

mui-bot commented Jan 18, 2025

Netlify deploy preview

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

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against ef2463f

@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material regression A bug, but worse labels Jan 20, 2025
@zannager zannager requested a review from mnajdova January 20, 2025 16:17
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@joshkel The fix looks correct, thanks! Just a few suggested changes in the tests. @mj12albert Could you review as well since this is a regression from #44537?

packages/mui-material/src/Slider/Slider.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Slider/Slider.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Slider/Slider.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Slider/Slider.test.js Outdated Show resolved Hide resolved
packages/mui-material/src/Slider/Slider.test.js Outdated Show resolved Hide resolved
Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Looks good ~ thanks for working on this @joshkel

@mj12albert mj12albert merged commit e6c9d99 into mui:master Jan 22, 2025
19 checks passed
@joshkel joshkel deleted the slider-custom-marks-nan branch January 22, 2025 13:52
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! package: material-ui Specific to @mui/material regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slider with marks and step=null gives NaN when using arrow keys off the end
4 participants