gravity-ui / uikit

Home Page:https://gravity-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to change rightIcon for submenu in DropdownMenu component

batyrshinrn opened this issue · comments

I am trying to change the rightIcon for submenu in DropdownMenu, but as I understand from code (

hasSubmenu ? (
<Icon
data={direction === 'rtl' ? ChevronLeft : ChevronRight}
size={10}
className={cnDropdownMenu('sub-menu-arrow')}
/>
) : (
props.iconEnd
) the icon always overwritten by default one

Is it possible to keep the icon that was set by rightIcon property of the "parent" item?

For now as workaround I am just customizing it by css (need just increase the size from 10 to 16), but it will be nice to have option to use custom icon

Thanks!

UXRFC-442

will be fixed in #1430