We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39224d3 commit a65a791Copy full SHA for a65a791
src/components/form.js
@@ -589,6 +589,11 @@ export class FormTextareaInput extends React.Component {
589
props.ref = inputRef || this.inputRef;
590
props.onChange = this.handleChange;
591
592
+ // readonly inputs are automatically marked disabled
593
+ // if this is undesired, explicitly pass disabled=false
594
+ if (props.readOnly && (props.disabled === undefined || props.disabled === null))
595
+ props.disabled = true;
596
+
597
return (
598
<div>
599
<Label label={label} required={props.required} />
0 commit comments