From 1c9b6840b14873d6e9494689dc1c92f4895703af Mon Sep 17 00:00:00 2001 From: Neha Gokhale Date: Fri, 18 Aug 2023 12:24:38 -0700 Subject: [PATCH] #1551 Disabled numberfield controls should not remain in error state (#1552) --- .../src/common-properties/controls/numberfield/numberfield.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas_modules/common-canvas/src/common-properties/controls/numberfield/numberfield.jsx b/canvas_modules/common-canvas/src/common-properties/controls/numberfield/numberfield.jsx index 2d08a431e8..a51cd10239 100755 --- a/canvas_modules/common-canvas/src/common-properties/controls/numberfield/numberfield.jsx +++ b/canvas_modules/common-canvas/src/common-properties/controls/numberfield/numberfield.jsx @@ -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);