mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-06-22 03:15:09 -04:00
Co-authored-by: Cory Rivera <corivera@microsoft.com>
This commit is contained in:
@@ -339,7 +339,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
// Try to find focusable element in dialog pane rather than overall container. _modalBodySection contains items in the pane for a wizard.
|
||||
// This ensures that we are setting the focus on a useful element in the form when possible.
|
||||
const focusableElements = this._modalBodySection ?
|
||||
this._modalBodySection.querySelectorAll('input') :
|
||||
this._modalBodySection.querySelectorAll(tabbableElementsQuerySelector) :
|
||||
this._bodyContainer.querySelectorAll(tabbableElementsQuerySelector);
|
||||
|
||||
this._focusedElementBeforeOpen = <HTMLElement>document.activeElement;
|
||||
|
||||
Reference in New Issue
Block a user