Skip to content

Commit

Permalink
Fix invalid readonly attribut on select element
Browse files Browse the repository at this point in the history
Fixes rjsf-team#2616
disabled={disabled || readonly} instead of readonly attribute
  • Loading branch information
Lausselloic authored Nov 19, 2021
1 parent 79a61ff commit eedf678
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/bootstrap-4/src/SelectWidget/SelectWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ const SelectWidget = ({
value={typeof value === "undefined" ? emptyValue : value}
required={required}
multiple={multiple}
disabled={disabled}
readOnly={readonly}
disabled={disabled || readonly}
autoFocus={autofocus}
className={rawErrors.length > 0 ? "is-invalid" : ""}
onBlur={
Expand Down

0 comments on commit eedf678

Please sign in to comment.