Skip to content

vue3+vant4 使用 Cascader 浏览器警告问题 #133

@aphpy

Description

@aphpy

我是用vue3+vant4的时候,使用Cascader 来实现地区选择器,代码使用的官方提供的示例代码,会报警告:
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: <li.van-cascader__option van-cascader__option--selected>
Ancestor with aria-hidden: <div.van-swipe-item van-tab__panel-wrapper#van-tab-3>
希望可以得到帮助,感谢。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions