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 (