Skip to content

Commit 3529b14

Browse files
author
Akos Kitta
committed
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 <a.kitta@arduino.cc>
1 parent e8a9ef7 commit 3529b14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arduino-ide-extension/src/browser/theia/workspace/workspace-input-dialog.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export class WorkspaceInputDialog extends TheiaWorkspaceInputDialog {
2828
protected override readonly labelProvider: LabelProvider
2929
) {
3030
super(props, labelProvider);
31+
if (this.contentNode.contains(this.errorMessageNode)) {
32+
// Reverts https://github.com/eclipse-theia/theia/pull/12585/files#diff-068570364d86f936ca72dfc52f8bfa93f14f6d971e2e6fa19216f33cb322244bR533-R534
33+
this.contentNode.removeChild(this.errorMessageNode);
34+
this.controlPanel.prepend(this.errorMessageNode);
35+
}
3136
this.node.classList.add('workspace-input-dialog');
3237
this.appendCloseButton(Dialog.CANCEL);
3338
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy