Web:Components:Context-Menu-Button: added id to DropDownItem component
This commit is contained in:
parent
cc51ff2ea1
commit
d039716d92
@ -222,6 +222,7 @@ class ContextMenuButton extends React.Component {
|
|||||||
(item.label || item.icon || item.key) && (
|
(item.label || item.icon || item.key) && (
|
||||||
<DropDownItem
|
<DropDownItem
|
||||||
{...item}
|
{...item}
|
||||||
|
id={item.key && `menu-${item.key.toLowerCase()}`}
|
||||||
key={item.key || index}
|
key={item.key || index}
|
||||||
onClick={this.onDropDownItemClick.bind(this, item)}
|
onClick={this.onDropDownItemClick.bind(this, item)}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user