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

Forward form attribute to all form control elements #3161

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

chaance
Copy link
Member

@chaance chaance commented Oct 1, 2024

Forwards the form attribute to the underlying control elements for all Radix components that render a bubble input. Closes #2530.

@@ -88,6 +90,7 @@ const Slider = React.forwardRef<SliderElement, SliderProps>(
onValueChange = () => {},
onValueCommit = () => {},
inverted = false,
form,
Copy link
Member Author

Choose a reason for hiding this comment

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

A slider can render multiple thumbs with separate inputs. Form attribute should be shared, so lifting this one to the root.

@chaance chaance force-pushed the chance/suppport-form-attribute branch from 46d4eaf to 50b363e Compare October 1, 2024 20:26
@chaance chaance merged commit dcd7a35 into main Oct 1, 2024
4 of 5 checks passed
@chaance chaance deleted the chance/suppport-form-attribute branch October 1, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkbox and other components do not render <input> element with form attribute
2 participants