ui: fix menu going under the listitem

This commit is contained in:
thecodrr
2020-01-06 17:34:45 +05:00
parent 3683f2c855
commit 45b4cdb5b6
3 changed files with 15 additions and 13 deletions

View File

@@ -19,13 +19,13 @@ function Menu(props) {
<Flex
key={item.title}
onClick={e => {
e.stopPropagation();
if (props.dropdownRef) {
props.dropdownRef.hide();
}
if (item.onClick) {
item.onClick(props.data);
}
e.stopPropagation();
}}
flexDirection="row"
alignItems="center"