mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 12:13:45 +00:00
* Update autofocus directive to be more aggressive in focusing * Handle checkVisibility not existing (safari < 17.4) * Tweak phrasing * Change approach
11 lines
310 B
TypeScript
11 lines
310 B
TypeScript
// FIXME: Update this file to be type safe and remove this and next line
|
|
// @ts-strict-ignore
|
|
/**
|
|
* Interface for implementing focusable components.
|
|
*
|
|
* Used by the `AutofocusDirective` and `A11yGridDirective`.
|
|
*/
|
|
export abstract class FocusableElement {
|
|
getFocusTarget: () => HTMLElement | undefined;
|
|
}
|