Javascript – Open menu with two different buttons
I have a very simple dropdown menu. By clicking on the icon NewIcon in DropdownMenu.Trigger, the user sees a drop-down menu. Everything is simple here. To implement the dropdown menu, I use the radix library (https://www.radix-ui.com/primitives/docs/components/dropdown-menu) <DropdownMenu.Root open={isOpen} onOpenChange={setIsOpen}> <DropdownMenu.Trigger>…