From 50e77d3ba85dfb2843987866c68a636f9303c986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 2 Oct 2026 10:25:08 +0200 Subject: [PATCH] fix dropdown --- client/components/dropdown/dropdown.jsx | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/client/components/dropdown/dropdown.jsx b/client/components/dropdown/dropdown.jsx index e5562112f..1949e0093 100644 --- a/client/components/dropdown/dropdown.jsx +++ b/client/components/dropdown/dropdown.jsx @@ -35,21 +35,6 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c const triggerRef = useRef(null); const menuRef = useRef(null); - if(disabled){ - return ( -
  • - -
  • - ); -} - // use setAttribute instead of the React style prop because React strips unknown CSS // properties (like anchor-name) from inline styles in browsers that don't support them. // setAttribute writes raw CSS text that the anchor positioning polyfill can read @@ -106,6 +91,21 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c document.querySelectorAll('.menu-list:popover-open').forEach((openMenu)=>openMenu.hidePopover()); }; + if(disabled){ + return ( +
  • + +
  • + ); + } + return (