-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
[form controls] Add inputRef
prop to roots
#1683
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -41,6 +41,7 @@ const SliderRoot = React.forwardRef(function SliderRoot<Value extends number | r | |||
step = 1, | |||
tabIndex: externalTabIndex, | |||
value, | |||
inputRef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For slider, I think we need to put this on the Thumb to support range sliders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gets forwarded to the <input>
in Thumb via context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant in a range slider each thumb has it's own input element, so they can't all take the same ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually had it on Slider.Thumb
already, just removed it from the Root
Closes #1619
RadioGroup
andRadio
Slider
Select