don't break cursor on textarea update in Edge
This commit is contained in:
parent
0edc374729
commit
40bc9449cb
3 changed files with 52 additions and 43 deletions
|
|
@ -244,7 +244,10 @@ module.exports = function($window) {
|
|||
}
|
||||
if (vnode.tag === "textarea") {
|
||||
if (vnode.attrs == null) vnode.attrs = {}
|
||||
if (vnode.text != null) vnode.attrs.value = vnode.text //FIXME handle multiple children
|
||||
if (vnode.text != null) {
|
||||
vnode.attrs.value = vnode.text //FIXME handle multiple children
|
||||
vnode.text = undefined
|
||||
}
|
||||
}
|
||||
updateAttrs(vnode, old.attrs, vnode.attrs, ns)
|
||||
if (old.text != null && vnode.text != null && vnode.text !== "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue