Skip to content

Commit

Permalink
Fix #2666: Fix overlay components in cell editor (#5373)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 22, 2023
1 parent 12aafa6 commit 8bd09a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export const BodyCell = React.memo((props) => {
type: 'click',
listener: (e) => {
if (!selfClick.current && isOutsideClicked(e.target)) {
switchCellToViewMode(e, true);
// #2666 for overlay components and outside is clicked
setTimeout(() => {
switchCellToViewMode(e, true);
}, 0);
}

selfClick.current = false;
Expand Down

0 comments on commit 8bd09a3

Please sign in to comment.