mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 05:01:49 +02:00
Stop propagation of mousedown on modal
This commit is contained in:
parent
654c300430
commit
53906b1acf
2 changed files with 6 additions and 4 deletions
|
@ -54,9 +54,6 @@ 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>,
|
||||||
|
|
|
@ -61,7 +61,12 @@ const Modal: React.VoidFunctionComponent<ModalProps> = ({
|
||||||
leaveFrom="opacity-100 scale-100"
|
leaveFrom="opacity-100 scale-100"
|
||||||
leaveTo="opacity-0 scale-95"
|
leaveTo="opacity-0 scale-95"
|
||||||
>
|
>
|
||||||
<div className="inline-block w-fit my-8 mx-4 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-xl">
|
<div
|
||||||
|
className="inline-block w-fit my-8 mx-4 overflow-hidden text-left align-middle transition-all transform bg-white shadow-xl rounded-xl"
|
||||||
|
onMouseDown={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
|
>
|
||||||
{content ?? (
|
{content ?? (
|
||||||
<div className="p-4 max-w-lg">
|
<div className="p-4 max-w-lg">
|
||||||
{title ? <Dialog.Title>{title}</Dialog.Title> : null}
|
{title ? <Dialog.Title>{title}</Dialog.Title> : null}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue