You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Team,
I am using Dropdown Menu component and hope to get some help from you. I found my custom DropdownMenu.Trigger component's click event is not triggered. Could you please help suggest how to fix it? Thanks.
import*asDropdownMenufrom"@radix-ui/react-dropdown-menu";exportconstDropdownMenuDemo=()=>{// this is not triggeredconstonClick=()=>{console.log('dddddddddddd')}return(<DropdownMenu.Root><DropdownMenu.TriggerasChild><buttonclassName="IconButton"aria-label="Customise options"><spanonClick={onClick}>span</span></button></DropdownMenu.Trigger><DropdownMenu.Portal><DropdownMenu.ContentclassName="DropdownMenuContent"sideOffset={5}><DropdownMenu.ItemclassName="DropdownMenuItem">
New Tab <divclassName="RightSlot">⌘+T</div></DropdownMenu.Item><DropdownMenu.ItemclassName="DropdownMenuItem">
New Window <divclassName="RightSlot">⌘+N</div></DropdownMenu.Item></DropdownMenu.Content></DropdownMenu.Portal></DropdownMenu.Root>);};
The text was updated successfully, but these errors were encountered:
Hi Team,
I am using Dropdown Menu component and hope to get some help from you. I found my custom DropdownMenu.Trigger component's click event is not triggered. Could you please help suggest how to fix it? Thanks.
The text was updated successfully, but these errors were encountered: