fix(hooks): [use-focus-controller] remove unnecessary role attributes (#13749)

fix(hooks): [a11y] remove unnecessary role attributes
This commit is contained in:
qiang 2023-07-28 21:25:33 +08:00 committed by GitHub
parent 0697a036f3
commit 014a99e3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,6 @@ export function useFocusController<T extends HTMLElement>(
watch(wrapperRef, (el) => {
if (el) {
el.setAttribute('role', 'button')
el.setAttribute('tabindex', '-1')
}
})