如何取消mat-datepicker-toggle的焦点?

huangapple go评论55阅读模式
英文:

How to remove the focus from mat-datepicker-toggle?

问题

我想使用Tab键进行导航,而不是导航到切换按钮,我想导航到可编辑字段。如下图所示:

英文:

I want navigate with tab and instead of navigating to the toggle button, I want to navigate to the editable field. As the image below:
如何取消mat-datepicker-toggle的焦点?

I tried to find in the documentation an function or directive that disable the focusable from toggle-button, but I don't have success.

答案1

得分: 1

已解决:我只在mat-datepicker-toggle元素中添加了属性绑定[tabIndex]="-1"

英文:

Solved: I only add the property binding [tabIndex]="-1" in the mat-datepicker-toggle element

huangapple
  • 本文由 发表于 2023年2月6日 20:39:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/75361427.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定