This commit is contained in:
thecodrr
2020-03-02 15:54:32 +05:00
parent 32d19ca067
commit 8b6026816f
2 changed files with 8 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ function Menu(props) {
onClick={e => {
e.stopPropagation();
Dropdown.closeLastOpened();
if (props.dropdownRef) {
props.dropdownRef.hide();
if (props.closeMenu) {
props.closeMenu();
}
if (item.onClick) {
item.onClick(props.data);