react-input-range
react-input-range copied to clipboard
disabling inside a fieldset
Is there a way to set disabled to match a parent fieldset's disabled state.
Much like any regular form input works.
In the below example the input is disabled because the fieldset is disabled.
<fieldset disabled={isDisabled}>
<input type="text"/>
</fieldset>
But as the InputRange component doesn't have an actual input element inside it it doesn't disable automatically.
I can obviously just add the disabled prop to the inputRange but i don't have to on regular inputs so i would like to not have to on this input either.