mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-27 06:13:16 +03:00
Removed unnecessary on mouse enter for soft focus (#5850)
In RecordTableCellContainer, I just removed onMouseEnter event handler that was being triggered when we used keyboard soft focus move. It's not necessary to have it because we already listen on mouse move which is matching our use case where we only want soft focus to move when mouse move and not when the cursor stays on top of a cell.
This commit is contained in:
parent
f825bea071
commit
7c1d9aebb9
@ -66,14 +66,6 @@ export const RecordTableCellContainer = ({
|
||||
}
|
||||
};
|
||||
|
||||
const handleContainerMouseEnter = () => {
|
||||
if (!hasSoftFocus) {
|
||||
onCellMouseEnter({
|
||||
cellPosition,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const handleContainerMouseLeave = () => {
|
||||
setHasSoftFocus(false);
|
||||
setIsFocused(false);
|
||||
@ -142,7 +134,6 @@ export const RecordTableCellContainer = ({
|
||||
value={editHotkeyScope ?? DEFAULT_CELL_SCOPE}
|
||||
>
|
||||
<div
|
||||
onMouseEnter={handleContainerMouseEnter}
|
||||
onMouseLeave={handleContainerMouseLeave}
|
||||
onMouseMove={handleContainerMouseMove}
|
||||
onClick={handleContainerClick}
|
||||
|
Loading…
Reference in New Issue
Block a user