如何设置角材料元素的tabindex?

问题描述 投票:1回答:1

我怎么能在角材料元素上设置tabindex=-1? F.E.如果我把它设置为mat-checkbox,在DOM中我看到:

mat-checkbox tab-index=-1
   label
      input tabindex=0

并且在mat-button-toggle中相同:mat-wrappera内的按钮不会更改其选项卡索引。

angular tabindex
1个回答
1
投票

当时没有办法这样做。你可以在这里跟进:https://github.com/angular/material2/issues/12041

© www.soinside.com 2019 - 2024. All rights reserved.