Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10004 tasks will not delete in people view #10039

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

bosiraphael
Copy link
Contributor

Fixes #10004

  • Fixed useListenClickOutside which wasn't working with excludeClassNames for comparePixels mode
  • Added emitCloseEvent parameter to the closeRightDrawer function because closing the right drawer after deleting a note or a task was triggering an update after the deletion.

This bug was only for the old version of the command menu.

@bosiraphael bosiraphael linked an issue Feb 5, 2025 that may be closed by this pull request
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR fixes task deletion in the People view by addressing click event handling and drawer closure coordination issues.

  • Added confirmation-modal class to ConfirmationModal for proper click detection exclusion
  • Fixed useListenClickOutside to respect excludeClassNames in comparePixels mode
  • Added emitCloseEvent parameter to closeRightDrawer to prevent unwanted post-deletion updates
  • Modified RightDrawerContainer to exclude confirmation modal clicks from triggering drawer closure
  • Ensured useDeleteSingleRecordAction uses emitCloseEvent: false when closing drawer after deletion

5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@bosiraphael bosiraphael merged commit 5528577 into main Feb 5, 2025
47 checks passed
@bosiraphael bosiraphael deleted the 10004-tasks-will-not-delete-in-people-view branch February 5, 2025 17:25
eliezer-rodrigues037 pushed a commit to mind-developer/kvoip-v2 that referenced this pull request Feb 7, 2025
Fixes twentyhq#10004 
- Fixed `useListenClickOutside` which wasn't working with
`excludeClassNames` for `comparePixels` mode
- Added `emitCloseEvent` parameter to the `closeRightDrawer` function
because closing the right drawer after deleting a note or a task was
triggering an update after the deletion.

This bug was only for the old version of the command menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tasks Will Not Delete In People View
2 participants