1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 00:23:17 +00:00

[PM-31384] Prevent dialog header from stealing focus from autofocus inputs (#18657)

This commit is contained in:
Vicki League
2026-02-04 10:26:38 -05:00
committed by jaasen-livefront
parent a3ced374da
commit 272e484b79
4 changed files with 55 additions and 23 deletions

View File

@@ -22,6 +22,8 @@ import { FocusableElement } from "../shared/focusable-element";
*
* If the component provides the `FocusableElement` interface, the `focus`
* method will be called. Otherwise, the native element will be focused.
*
* If selector changes, `dialog.component.ts` must also be updated
*/
@Directive({
selector: "[appAutofocus], [bitAutofocus]",