Skip to content

Commit

Permalink
#1551 Disabled numberfield controls should not remain in error state (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nmgokhale authored Aug 18, 2023
1 parent 5503e1f commit 1c9b684
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ NumberfieldControl.propTypes = {
const mapStateToProps = (state, ownProps) => ({
value: ownProps.controller.getPropertyValue(ownProps.propertyId),
state: ownProps.controller.getControlState(ownProps.propertyId),
messageInfo: ownProps.controller.getErrorMessage(ownProps.propertyId)
messageInfo: ownProps.controller.getErrorMessage(ownProps.propertyId, true) // Filter error messages for hidden/disabled controls
});

export default connect(mapStateToProps, null)(NumberfieldControl);

0 comments on commit 1c9b684

Please sign in to comment.