Feat/open input not focus (#811)
* Fixed click outside * Finished * Fixed tests
This commit is contained in:
@ -16,9 +16,12 @@ export function useRegisterCloseCellHandlers(
|
||||
const { isCurrentCellInEditMode } = useCurrentCellEditMode();
|
||||
useListenClickOutsideArrayOfRef({
|
||||
refs: [wrapperRef],
|
||||
callback: () => {
|
||||
callback: (event) => {
|
||||
if (isCurrentCellInEditMode) {
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
onSubmit?.();
|
||||
|
||||
closeEditableCell();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user