Skip to content

Commit e6cc9e8

Browse files
author
work-2025
committed
fix: the first-letter issue when using IME input (slab#151)
1 parent 3d0b71c commit e6cc9e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/blot/abstract/parent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ class ParentBlot extends ShadowBlot implements Parent {
229229
refDomNode = refBlot.domNode;
230230
}
231231
if (
232-
this.domNode.parentNode !== childBlot.domNode ||
233-
this.domNode.nextSibling !== refDomNode
232+
this.domNode !== childBlot.domNode.parentNode ||
233+
childBlot.domNode.nextSibling !== refDomNode
234234
) {
235235
this.domNode.insertBefore(childBlot.domNode, refDomNode);
236236
}

0 commit comments

Comments
 (0)