From 3529b147f5f05d650560338f826762e7f374da5a Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Sun, 30 Jul 2023 17:44:23 +0200 Subject: [PATCH] fix: disable validation styles in dialog reverted DOM structure changes in single text input dialogs. temporary workaround before aligning the validation style in all dialogs Ref: eclipse-theia/theia#12585 Signed-off-by: Akos Kitta --- .../src/browser/theia/workspace/workspace-input-dialog.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts b/arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts index 8a8e82eec..9f48fbb52 100644 --- a/arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts +++ b/arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts @@ -28,6 +28,11 @@ export class WorkspaceInputDialog extends TheiaWorkspaceInputDialog { protected override readonly labelProvider: LabelProvider ) { super(props, labelProvider); + if (this.contentNode.contains(this.errorMessageNode)) { + // Reverts https://github.com/eclipse-theia/theia/pull/12585/files#diff-068570364d86f936ca72dfc52f8bfa93f14f6d971e2e6fa19216f33cb322244bR533-R534 + this.contentNode.removeChild(this.errorMessageNode); + this.controlPanel.prepend(this.errorMessageNode); + } this.node.classList.add('workspace-input-dialog'); this.appendCloseButton(Dialog.CANCEL); }