From bbc1f495e355193208d05841614802b6003efb6a Mon Sep 17 00:00:00 2001 From: marcoskolodny Date: Mon, 9 Oct 2023 10:25:57 +0200 Subject: [PATCH] remove hack for menu container role --- src/menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu.tsx b/src/menu.tsx index 4e897fb656..4a9611885c 100644 --- a/src/menu.tsx +++ b/src/menu.tsx @@ -383,9 +383,8 @@ export const Menu: React.FC = ({ }); React.useEffect(() => { - menu?.setAttribute('role', 'menu'); target?.setAttribute('aria-expanded', String(isMenuOpen)); - }, [menu, target, isMenuOpen]); + }, [target, isMenuOpen]); return (
@@ -438,6 +437,7 @@ export const Menu: React.FC = ({ : {}), }), }} + role="menu" >