element-focus.d.ts 740 B

123456789101112131415161718
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. /**
  9. * Patches an elements focus and blur methods to emit events consistently and predictably.
  10. * This is necessary, because some browsers, like IE11, will call the focus handlers asynchronously,
  11. * while others won't fire them at all if the browser window is not focused.
  12. * @docs-private
  13. */
  14. export declare function patchElementFocus(element: HTMLElement): void;
  15. /** @docs-private */
  16. export declare function triggerFocus(element: HTMLElement): void;
  17. /** @docs-private */
  18. export declare function triggerBlur(element: HTMLElement): void;