vaadin:排除tabbing订单中的可读字段
在vaadin 23形式中,有一些输入字段。其中一些是只读的。
我想从表顺序排除这些仅阅读字段。
不能编辑仅阅读元素,但是它们处于标签顺序中,因此可以接受焦点。
有没有办法将仅阅读元素排除在表顺序之外,但是将所有其他属性保留为IS?例如,我想保留用户标记内容并复制它的功能。
不打算禁用输入字段(而不是将其设置为ROADONLY)。
In a Vaadin 23 form there are some input fields. Some of them are read-only.
I want to exclude these read-only fields from tabbing order.
https://vaadin.com/docs/latest/components/input-fields#focus states hits:
Read-only elements cannot be edited, but they are in the tabbing order and can thus receive focus.
Is there a way to exclude read-only elements from tabbing order, but keep all other properties as-is? E.g. I'd like to keep the functionality for the user to mark the content and copy it.
Disabling the input fields (instead of setting them readonly) is not intended.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为这些字段设置Tabindex =“ - 1”就足够了。
< .com/api/platform/23.1.1/com/com/vaadin/flow/component/coppoent.html#settabindex(int)
Setting tabindex="-1" for those fields should be enough.
https://vaadin.com/api/platform/23.1.1/com/vaadin/flow/component/Focusable.html#setTabIndex(int)