Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/ui/NewTaskForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
setActionParamPayload(payload)
store.dispatch(setAllCreateTaskFields(taskPayload))
}
}, [urlActionParams, assignee])

Check warning on line 181 in src/app/ui/NewTaskForm.tsx

View workflow job for this annotation

GitHub Actions / Run linters

React Hook useCallback has missing dependencies: 'token' and 'workflowStates'. Either include them or remove the dependency array

useEffect(() => {
if (!assignee.length) return
Expand Down Expand Up @@ -336,7 +336,7 @@
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
overflow: 'hidden',
maxWidth: { xs: '102px', sm: 'none' },
maxWidth: { xs: '150px', sm: 'none' },
}}
>
<DatePickerComponent
Expand Down
6 changes: 4 additions & 2 deletions src/hooks/useClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ export default function useClickOutside<T extends HTMLElement>(
const listener = (event: Event) => {
const path = getEventPath(event)

if (path.some((el) => (el as HTMLElement)?.classList?.contains('MuiPickersPopper-root'))) {
return // don't close if the element has MUI classes. This prevent popper to not close when clicking on the date picker
if (
(event.target as HTMLElement)?.closest?.('.MuiPickersPopper-root, .MuiPickersLayout-root, .MuiDateCalendar-root')
) {
return // don't close if the click is inside the MUI date picker (covers both desktop popper and mobile dialog)
}

for (const r of refArray) {
Expand Down
Loading