From 014a99e3e7af46f7376e3fefc3ea98a03cc07488 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 28 Jul 2023 21:25:33 +0800 Subject: [PATCH] fix(hooks): [use-focus-controller] remove unnecessary role attributes (#13749) fix(hooks): [a11y] remove unnecessary role attributes --- packages/hooks/use-focus-controller/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/hooks/use-focus-controller/index.ts b/packages/hooks/use-focus-controller/index.ts index 3c73901def..46122eee23 100644 --- a/packages/hooks/use-focus-controller/index.ts +++ b/packages/hooks/use-focus-controller/index.ts @@ -41,7 +41,6 @@ export function useFocusController( watch(wrapperRef, (el) => { if (el) { - el.setAttribute('role', 'button') el.setAttribute('tabindex', '-1') } })