mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
[weex] fix the text node could not be removed properly (#4606)
This commit is contained in:
parent
c1f68dd96e
commit
05591f177a
@ -34,6 +34,10 @@ export function insertBefore (node, target, before) {
|
||||
}
|
||||
|
||||
export function removeChild (node, child) {
|
||||
if (node.nodeType === 3) {
|
||||
node.parentNode.setAttr('value', '')
|
||||
return
|
||||
}
|
||||
node.removeChild(child)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user