From 78ab506a6a28e2d9d3cbc7fb6bb4e3d6f99a3c94 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:04:30 +0200 Subject: [PATCH] fix: revert the dispatchEvent just to be safe --- .../src/packages/code-editor/code-editor.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/code-editor/code-editor.controller.ts b/src/Umbraco.Web.UI.Client/src/packages/code-editor/code-editor.controller.ts index 03754fa150..c364bc3e36 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/code-editor/code-editor.controller.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/code-editor/code-editor.controller.ts @@ -140,11 +140,11 @@ export class UmbCodeEditorController extends UmbControllerBase { #initiateEvents() { this.#editor?.onDidChangeModelContent(() => { this.#host.code = this.value ?? ''; - this.dispatchEvent(new UmbInputEvent()); + this.#host.dispatchEvent(new UmbInputEvent()); }); this.#editor?.onDidChangeModel(() => { - this.dispatchEvent(new UmbChangeEvent()); + this.#host.dispatchEvent(new UmbChangeEvent()); }); this.#editor?.onDidChangeCursorPosition((e) => {