react-input-range icon indicating copy to clipboard operation
react-input-range copied to clipboard

disabling inside a fieldset

Open greglbd opened this issue 7 years ago • 0 comments

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.

greglbd avatar Nov 08 '17 00:11 greglbd