We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88bde9b + 7a85ae4 commit 2b6ec86Copy full SHA for 2b6ec86
1 file changed
src/frontend/src/pages/CalendarPage/Components/EventModal.tsx
@@ -897,7 +897,14 @@ const EventModal: React.FC<BaseEventModalProps> = ({
897
open={startTimePickerOpen}
898
onClose={() => setStartTimePickerOpen(false)}
899
onOpen={() => setStartTimePickerOpen(true)}
900
- onChange={(newValue) => onChange(newValue)}
+ onChange={(newValue) => {
901
+ onChange(newValue);
902
+ if (newValue) {
903
+ const newEndTime = new Date(newValue);
904
+ newEndTime.setHours(newEndTime.getHours() + 1);
905
+ setValue('endTime', newEndTime);
906
+ }
907
+ }}
908
slotProps={{
909
textField: {
910
variant: 'standard',
0 commit comments