Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Stop propagation of combobox

Luke Vellaae9d9f108322
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 ebe6d1bbe..274d528a5 100644
--- a/components/forms/poll-options-form/month-calendar/time-picker.tsx
+++ b/components/forms/poll-options-form/month-calendar/time-picker.tsx
@@ -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>,