Bundled output for commit 4f68984f2f [skip ci]

This commit is contained in:
Gandalf-the-Bot 2018-11-14 20:36:41 +00:00
parent 4f68984f2f
commit 0d36d0db85
3 changed files with 9 additions and 2 deletions

View file

@ -1056,6 +1056,13 @@ var coreRenderer = function($window) {
if (child != null) onremove(child)
}
}
// Chrome emits a `blur` event on children1 when they are removed,
// but *before* they dereference their parent...
// https://stackoverflow.com/questions/21926083/failed-to-execute-removechild-on-node#22934552
// https://github.com/MithrilJS/mithril.js/issues/1771
if (vnode.events != null && vnode.events.onblur != null) {
vnode.dom.removeEventListener("blur", vnode.events, false)
}
}
}
//attrs2