Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Sep 12, 2023
1 parent f51ca17 commit a17330e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/core/utils/content-editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ function getSelectedPositionInParentByOffset (node, offset) {
if (domUtils.isShadowUIElement(node))
return { node, offset };

let currentNode = childNodes[offset];
let currentOffset = 0;
const childNodes = nativeMethods.nodeChildNodesGetter.call(node);
const childCount = domUtils.getChildNodesLength(childNodes);
let isSearchForLastChild = offset >= childCount;
let currentNode = childNodes[offset];
let currentOffset = 0;

// NOTE: IE behavior
// if (isSearchForLastChild)
Expand Down

0 comments on commit a17330e

Please sign in to comment.