diff --git a/packages/standard-components/src/forms/validation.js b/packages/standard-components/src/forms/validation.js index 3332932eb9..d52397f7c6 100644 --- a/packages/standard-components/src/forms/validation.js +++ b/packages/standard-components/src/forms/validation.js @@ -248,7 +248,11 @@ const equalHandler = (value, rule) => { // Evaluates a not equal constraint const notEqualHandler = (value, rule) => { - return !equalHandler(value, rule) + const ruleValue = parseType(rule.value, rule.type) + if (value == null && ruleValue == null) { + return true + } + return value !== ruleValue } // Evaluates a regex constraint