Creating records in side panel not working (#10999)
Fixes https://github.com/twentyhq/core-team-issues/issues/624 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { useRecoilCallback } from 'recoil';
|
||||
|
||||
import { activeDropdownFocusIdState } from '@/ui/layout/dropdown/states/activeDropdownFocusIdState';
|
||||
import { previousDropdownFocusIdState } from '@/ui/layout/dropdown/states/previousDropdownFocusIdState';
|
||||
import { internalHotkeysEnabledScopesState } from '@/ui/utilities/hotkey/states/internal/internalHotkeysEnabledScopesState';
|
||||
import { useClickOustideListenerStates } from '@/ui/utilities/pointer-event/hooks/useClickOustideListenerStates';
|
||||
|
||||
@ -190,32 +188,6 @@ export const useListenClickOutside = <T extends Element>({
|
||||
!isMouseDownInside &&
|
||||
!isClickedOnExcluded;
|
||||
|
||||
if (CLICK_OUTSIDE_DEBUG_MODE) {
|
||||
const activeDropdownFocusId = snapshot
|
||||
.getLoadable(activeDropdownFocusIdState)
|
||||
.getValue();
|
||||
|
||||
const previousDropdownFocusId = snapshot
|
||||
.getLoadable(previousDropdownFocusIdState)
|
||||
.getValue();
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('click outside compare refs', {
|
||||
listenerId,
|
||||
shouldTrigger,
|
||||
isListening,
|
||||
hasMouseDownHappened,
|
||||
clickedOnAtLeastOneRef,
|
||||
isMouseDownInside,
|
||||
isClickedOnExcluded,
|
||||
activeDropdownFocusId,
|
||||
previousDropdownFocusId,
|
||||
hotkeyScope,
|
||||
enabled,
|
||||
event,
|
||||
});
|
||||
}
|
||||
|
||||
if (shouldTrigger) {
|
||||
callback(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user