diff --git a/components/forms/poll-options-form/month-calendar/time-picker.tsx b/components/forms/poll-options-form/month-calendar/time-picker.tsx index 274d528a5..ebe6d1bbe 100644 --- a/components/forms/poll-options-form/month-calendar/time-picker.tsx +++ b/components/forms/poll-options-form/month-calendar/time-picker.tsx @@ -54,9 +54,6 @@ const TimePicker: React.VoidFunctionComponent = ({ key={i} className={styleMenuItem} value={optionValue.toISOString()} - onMouseDown={(e: React.MouseEvent) => - e.stopPropagation() - } > {format(optionValue, "p")} , diff --git a/components/modal/modal.tsx b/components/modal/modal.tsx index d4e3a48c4..3ebd43b6a 100644 --- a/components/modal/modal.tsx +++ b/components/modal/modal.tsx @@ -61,7 +61,12 @@ const Modal: React.VoidFunctionComponent = ({ leaveFrom="opacity-100 scale-100" leaveTo="opacity-0 scale-95" > -
+
{ + e.stopPropagation(); + }} + > {content ?? (
{title ? {title} : null}