Skip to content

Commit

Permalink
Fix primefaces#2666: Fix overlay components in cell editor
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 22, 2023
1 parent 12aafa6 commit 5b65ec7
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 5b65ec7

Please sign in to comment.