Skip to content

Commit

Permalink
Dev warning for failed DOM selection
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx committed May 5, 2024
1 parent dfe4b8c commit 0219ab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lexical/src/LexicalSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2657,6 +2657,9 @@ export function updateDOMSelection(
// If we encounter an error, continue. This can sometimes
// occur with FF and there's no good reason as to why it
// should happen.
if (__DEV__) {
console.warn(error);
}
}
if (
!tags.has('skip-scroll-into-view') &&
Expand Down

0 comments on commit 0219ab2

Please sign in to comment.