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] form control state is not supported #39148

Open
2 tasks done
mogamogua opened this issue Sep 25, 2023 · 1 comment
Open
2 tasks done

[material-ui][Slider] form control state is not supported #39148

mogamogua opened this issue Sep 25, 2023 · 1 comment
Labels
component: slider This is the name of the generic UI component, not the React module! new feature New feature or request waiting for 👍 Waiting for upvotes

Comments

@mogamogua
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:https://codesandbox.io/s/48hw3f?file=/Demo.tsx

Steps: Go to any demo of mui slider docs page

  1. change Box -> FormControl
  2. set disabled prop to FormControl.
  3. slider is not disabled.

Current behavior 😯

slider's disabled is not affected by parent form control's state.

Expected behavior 🤔

Slider is also input element (already categorized 'Inputs' in mui docs) and native input also has 'range' type input.

as input element, I think it is expected behavior formControl's context state affect slider's state.

Context 🔦

I'm making FormFieldset using FormControl component, which can have multiple sliders ,textField, ... an etc input element.

Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@mogamogua mogamogua added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 25, 2023
@zannager zannager added the component: slider This is the name of the generic UI component, not the React module! label Sep 25, 2023
@mogamogua
Copy link
Author

toggleButtonGroup is also not affected by parent form control context state. I'm not sure toggleButtonGroup is designed as input of form component. it is intended?

@ZeeshanTamboli ZeeshanTamboli added new feature New feature or request waiting for 👍 Waiting for upvotes and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: slider This is the name of the generic UI component, not the React module! new feature New feature or request waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

4 participants