fix: revert the dispatchEvent just to be safe

This commit is contained in:
Jacob Overgaard
2024-07-19 12:04:30 +02:00
parent b9ff92899a
commit 78ab506a6a

View File

@@ -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) => {