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

Method _skipPredicate

src/material/chips/chip-listbox.ts:389–400  ·  view source on GitHub ↗

* Determines if key manager should avoid putting a given chip action in the tab index. Skip * non-interactive actions since the user can't do anything with them.

(action: MatChipAction)

Source from the content-addressed store, hash-verified

387 * non-interactive actions since the user can't do anything with them.
388 */
389 protected override _skipPredicate(action: MatChipAction): boolean {
390 // Override the skip predicate in the base class to avoid skipping disabled chips. Allow
391 // disabled chip options to receive focus to align with WAI ARIA recommendation. Normally WAI
392 // ARIA's instructions are to exclude disabled items from the tab order, but it makes a few
393 // exceptions for compound widgets.
394 //
395 // From [Developing a Keyboard Interface](
396 // https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/):
397 // "For the following composite widget elements, keep them focusable when disabled: Options in a
398 // Listbox..."
399 return false;
400 }
401}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected