Skip to content

Commit 05591f1

Browse files
Hanks10100yyx990803
authored andcommitted
[weex] fix the text node could not be removed properly (vuejs#4606)
1 parent c1f68dd commit 05591f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platforms/weex/runtime/node-ops.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export function insertBefore (node, target, before) {
3434
}
3535

3636
export function removeChild (node, child) {
37+
if (node.nodeType === 3) {
38+
node.parentNode.setAttr('value', '')
39+
return
40+
}
3741
node.removeChild(child)
3842
}
3943

0 commit comments

Comments
 (0)