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 <[email protected]>
1 parent e8a9ef7 commit 3529b14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
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)