This commit is contained in:
Isiah Meadows 2019-07-12 16:27:24 -04:00 committed by GitHub
parent 3fd1953143
commit 6e57a0691c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 3 deletions

View file

@ -189,9 +189,11 @@ module.exports = function($window, mountRedraw) {
// Remove these so they don't get overwritten
var attrs = {}, onclick, href
assign(attrs, vnode.attrs)
attrs.component = null
attrs.options = null
attrs.key = null
// The first two are internal, but the rest are magic attributes
// that need censored to not screw up rendering.
attrs.component = attrs.options = attrs.key = attrs.oninit =
attrs.oncreate = attrs.onbeforeupdate = attrs.onupdate =
attrs.onbeforeremove = attrs.onremove = null
// Do this now so we can get the most current `href` and `disabled`.
// Those attributes may also be specified in the selector, and we