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:
Lucas Bordeau 2024-06-13 11:17:17 +02:00 committed by GitHub
parent f825bea071
commit 7c1d9aebb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}