Skip to content

Commit ab972ea

Browse files
committed
add setTimeout to close
1 parent 94c2d1b commit ab972ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/components/Dropdown/DropdownMenu.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ const DropdownMenu = forwardRef(
5050
<DropdownWrapper
5151
className={classes.list}
5252
align={align}
53-
onMouseUp={close}
53+
onMouseUp={() => {
54+
setTimeout(close, 0);
55+
}}
5456
onBlur={handleBlur}
5557
onFocus={handleFocus}
5658
>

0 commit comments

Comments
 (0)