gravity-ui / uikit

https://gravity-ui.com
MIT License
516 stars 84 forks source link

Don't mark the first element of the submenu as selected when opening #1640

Open batyrshinrn opened 2 weeks ago

batyrshinrn commented 2 weeks ago

Now in DropdownMenu component the first element of the submenu always mark as selected when opening. https://github.com/gravity-ui/uikit/blob/6eca54635f8fbbcf6960ff6bb96563273b458700/src/components/DropdownMenu/DropdownMenuPopup.tsx#L131

It will be great if you add the ability to disable this behavior

image
amje commented 2 weeks ago

Will be fixed in #1430