diff --git a/src/Field.tsx b/src/Field.tsx index 964fff12..4415ab9e 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -159,6 +159,12 @@ class Field extends React.Component implements F initEntityValue(this); } } + + public componentDidUpdate({ rules: prevRules }) { + if (!isEqual(prevRules,this.props.rules)) { + this.validateRules(); + } + } public componentDidMount() { const { shouldUpdate, fieldContext } = this.props;