Skip to content

[slider] Simplify integration with form libraries#22548

Merged
oliviertassinari merged 7 commits into
mui:nextfrom
youjingwong:slider-name-missing
Sep 11, 2020
Merged

[slider] Simplify integration with form libraries#22548
oliviertassinari merged 7 commits into
mui:nextfrom
youjingwong:slider-name-missing

Conversation

@youjingwong

Copy link
Copy Markdown
Contributor

Fixes #13485

@youjingwong

Copy link
Copy Markdown
Contributor Author

Should we also change onChangeCommitted?

@mui-pr-bot

mui-pr-bot commented Sep 10, 2020

Copy link
Copy Markdown

Details of bundle changes

Generated by 🚫 dangerJS against ec73fa4

@eps1lon eps1lon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note that onChange isn't a actual change event listener. The target and currentTarget can be arbitrary elements.

Comment thread packages/material-ui/src/Slider/Slider.js Outdated
@oliviertassinari oliviertassinari added the scope: slider Changes related to the slider. label Sep 10, 2020

@oliviertassinari oliviertassinari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we also change onChangeCommitted?

No, I don't think so. The motivation is to make the component behave more closely to a native range slider.

Comment thread packages/material-ui/src/Slider/Slider.js Outdated
Comment thread packages/material-ui/src/Slider/Slider.js Outdated
Comment thread packages/material-ui/src/Slider/Slider.js Outdated
Comment thread packages/material-ui/src/Slider/Slider.js Outdated
Comment thread packages/material-ui/src/Slider/Slider.js Outdated
@oliviertassinari oliviertassinari changed the title ensures slider passes name and value in onChange event target [Slider] Simplify integration with form libraries Sep 10, 2020
@oliviertassinari oliviertassinari added the type: new feature Expand the scope of the product to solve a new problem. label Sep 10, 2020
@youjingwong

Copy link
Copy Markdown
Contributor Author

The failing tests should not be related to this PR. How do I get this merged? Do I need to rebase?

Comment thread packages/material-ui/src/Slider/Slider.js Outdated
@oliviertassinari
oliviertassinari merged commit ad558cb into mui:next Sep 11, 2020
@oliviertassinari

Copy link
Copy Markdown
Member

@NoNonsense126 It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

@oliviertassinari oliviertassinari changed the title [Slider] Simplify integration with form libraries [slider] Simplify integration with form libraries May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: slider Changes related to the slider. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[slider] Missing name property?

4 participants