From 279b6057d26a0e2a9e7e01997633ec63364ecb54 Mon Sep 17 00:00:00 2001 From: Valentin Serra Date: Wed, 24 Apr 2024 08:23:08 +0200 Subject: [PATCH] chore: delete custom validation when setting a validationType Related to #1162 --- .../src/features/modeling/behavior/ValidateBehavior.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js index d412e27da..698f9a71c 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js @@ -21,6 +21,7 @@ export class ValidateBehavior extends CommandInterceptor { delete newValidate.minLength; delete newValidate.maxLength; + delete newValidate.custom; delete newValidate.pattern; properties['validate'] = newValidate;