MCPcopy Create free account
hub / github.com/angular/components / _allowFocusEscape

Method _allowFocusEscape

src/material/chips/chip-grid.ts:441–445  ·  view source on GitHub ↗

* Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the * user to tab out of it. This prevents the grid from capturing focus and redirecting * it back to the first chip, creating a focus trap, if it user tries to tab away.

()

Source from the content-addressed store, hash-verified

439 * it back to the first chip, creating a focus trap, if it user tries to tab away.
440 */
441 protected override _allowFocusEscape() {
442 if (!this._chipInput?.focused) {
443 super._allowFocusEscape();
444 }
445 }
446
447 /** Handles custom keyboard events. */
448 override _handleKeydown(event: KeyboardEvent) {

Callers 1

_handleKeydownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected