mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
auto focus message area (#22743)
This commit is contained in:
@@ -613,6 +613,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
|||||||
if (visible) {
|
if (visible) {
|
||||||
if (this._useDefaultMessageBoxLocation) {
|
if (this._useDefaultMessageBoxLocation) {
|
||||||
DOM.prepend(this._modalContent!, this._messageElement!);
|
DOM.prepend(this._modalContent!, this._messageElement!);
|
||||||
|
this.setInitialFocusedElement();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// only do the removal when the messageElement has parent element.
|
// only do the removal when the messageElement has parent element.
|
||||||
|
|||||||
Reference in New Issue
Block a user