Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawjaren committed Nov 20, 2024
1 parent 301dc57 commit 8e271c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const BodyCell = React.memo((props) => {

const isIgnoredElement = (element) => {
const isCellEditor = (el) => el.getAttribute && el.getAttribute('data-pr-is-overlay');

return isCellEditor(element) || DomHandler.getParents(element).find((el) => isCellEditor(el));
};

Expand All @@ -74,6 +75,7 @@ export const BodyCell = React.memo((props) => {
if (isIgnoredElement(e.target)) {
return;
}

setTimeout(() => {
if (!selfClick.current && isOutsideClicked(e.target)) {
// #2666 for overlay components and outside is clicked
Expand Down

0 comments on commit 8e271c3

Please sign in to comment.