Skip to content

Commit

Permalink
#3896: Discard asA on ReadonlyField
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed Oct 19, 2021
1 parent 5255193 commit db2b4d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/components/FieldHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export const ReadonlyField = ({
field, // { name, value, onChange, onBlur }
form, // also values, setXXXX, handleXXXX, dirty, isValid, status, etc.
label,
asA,
children,
extraColElem,
labelColumnWidth,
Expand Down Expand Up @@ -300,6 +301,7 @@ ReadonlyField.propTypes = {
field: PropTypes.object,
form: PropTypes.object,
label: PropTypes.string,
asA: PropTypes.string, // unused, prop is discarded
children: PropTypes.any,
extraColElem: PropTypes.object,
addon: PropTypes.object,
Expand Down

0 comments on commit db2b4d7

Please sign in to comment.