/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/aria/private/utils/transforms.ts
17 строк
535 B
tjshiu
refactor(aria/combobox): allow adding tabIndex and default it to 0 (#33183)
01 май 2026, 07:56
Не верифицирован
01 май 2026, 07:56
60234c2
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {numberAttribute} from '@angular/core'; /** * Transform function for tabIndex inputs. * Returns undefined if the value is undefined, otherwise converts it to a number. */ export function tabIndexTransform(v: string | number | undefined): number | undefined { return v === undefined ? undefined : numberAttribute(v); }