From 15061a10e9f627c96640872cfccfcad364e63393 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Tue, 1 Mar 2022 14:39:30 +0100 Subject: [PATCH] IBX-2177: Page builder - Error state on icon --- .../public/js/scripts/fieldType/base/base-field.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bundle/Resources/public/js/scripts/fieldType/base/base-field.js b/src/bundle/Resources/public/js/scripts/fieldType/base/base-field.js index fca81cdc37..b749330cad 100644 --- a/src/bundle/Resources/public/js/scripts/fieldType/base/base-field.js +++ b/src/bundle/Resources/public/js/scripts/fieldType/base/base-field.js @@ -94,6 +94,12 @@ input.classList[methodName](this.classInvalid); nodes.forEach((el) => el.classList[methodName](this.classInvalid)); + + doc.body.dispatchEvent( + new CustomEvent('ibexa-inputs-validation:change-state', { + detail: { nodes }, + }), + ); } /**