10004 tasks will not delete in people view (#10039)

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.
This commit is contained in:
Raphaël Bosi
2025-02-05 18:25:39 +01:00
committed by GitHub
parent e3182a145d
commit 5528577707
6 changed files with 27 additions and 20 deletions

View File

@ -85,7 +85,7 @@ export const useDeleteSingleRecordAction: ActionHookWithObjectMetadataItem = ({
onConfirmClick={() => {
handleDeleteClick();
if (isInRightDrawer) {
closeRightDrawer();
closeRightDrawer({ emitCloseEvent: false });
}
}}
deleteButtonText={'Delete Record'}