Fixing IE bug causing active element to be null causing render function to throw error

This commit is contained in:
Jackson Nowotny 2017-08-22 14:04:24 -05:00
parent 19969e2555
commit 849e862413
2 changed files with 2 additions and 1 deletions

View file

@ -630,7 +630,7 @@ module.exports = function($window) {
updateNodes(dom, dom.vnodes, Vnode.normalizeChildren(vnodes), false, hooks, null, namespace === "http://www.w3.org/1999/xhtml" ? undefined : namespace)
dom.vnodes = vnodes
for (var i = 0; i < hooks.length; i++) hooks[i]()
if ($doc.activeElement !== active) active.focus()
if (active !== null && $doc.activeElement !== active) active.focus()
}
return {render: render, setEventCallback: setEventCallback}