Skip to content

Commit

Permalink
fix: JiHong88#584 core.insertNode
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 authored and NickyTope committed Feb 11, 2021
1 parent cbd6c5b commit 9e4e158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
parentNode = prevContainer.nodeType === 3 ? prevContainer.parentNode : prevContainer;
if (parentNode.contains(container)) {
afterNode = container;
while (afterNode.parentNode === parentNode) {
while (afterNode.parentNode !== parentNode) {
afterNode = afterNode.parentNode;
}
} else {
Expand Down

0 comments on commit 9e4e158

Please sign in to comment.