mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-03 03:01:52 +02:00
Stop propagation of combobox
Causes modal to close when click on dropdowns.
This commit is contained in:
parent
aefc7cc298
commit
ae9d9f1083
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ const TimePicker: React.VoidFunctionComponent<TimePickerProps> = ({
|
||||||
key={i}
|
key={i}
|
||||||
className={styleMenuItem}
|
className={styleMenuItem}
|
||||||
value={optionValue.toISOString()}
|
value={optionValue.toISOString()}
|
||||||
|
onMouseDown={(e: React.MouseEvent<HTMLLIElement>) =>
|
||||||
|
e.stopPropagation()
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{format(optionValue, "p")}
|
{format(optionValue, "p")}
|
||||||
</Combobox.Option>,
|
</Combobox.Option>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue