1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

[PM-19923] Update autofocus directive to be more aggressive in focusing (#14368)

* Update autofocus directive to be more aggressive in focusing

* Handle checkVisibility not existing (safari < 17.4)

* Tweak phrasing

* Change approach
This commit is contained in:
Oscar Hinton
2025-04-22 18:46:35 +02:00
committed by GitHub
parent d70d81dec6
commit 490a46e9b6
3 changed files with 46 additions and 14 deletions

View File

@@ -6,5 +6,5 @@
* Used by the `AutofocusDirective` and `A11yGridDirective`.
*/
export abstract class FocusableElement {
getFocusTarget: () => HTMLElement;
getFocusTarget: () => HTMLElement | undefined;
}