Stop propagation of combobox

Causes modal to close when click on dropdowns.
This commit is contained in:
Luke Vella 2022-04-15 16:37:27 +01:00
parent aefc7cc298
commit ae9d9f1083

View file

@ -54,6 +54,9 @@ const TimePicker: React.VoidFunctionComponent<TimePickerProps> = ({
key={i}
className={styleMenuItem}
value={optionValue.toISOString()}
onMouseDown={(e: React.MouseEvent<HTMLLIElement>) =>
e.stopPropagation()
}
>
{format(optionValue, "p")}
</Combobox.Option>,