-
Hi everyone, I'd like to create a dropdown menu, which contains one special item. When the item is clicked, the dropdown menu will not close, instead it would do some other stuff, such as replace the item with different contents. Other items are remaining the same, so they would close the menu when clicked. I've checked the source code, but got stuck with its complexity. Does anyone know if this is achievable? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
preventDefault in reference: primitives/packages/react/menu/src/Menu.tsx Lines 621 to 633 in 7e8f720 |
Beta Was this translation helpful? Give feedback.
preventDefault in
onSelect
handlerreference:
primitives/packages/react/menu/src/Menu.tsx
Lines 621 to 633 in 7e8f720