Skip to content

Commit c3bd936

Browse files
committed
v1.1.4
1 parent 5b727f0 commit c3bd936

File tree

4 files changed

+49
-48
lines changed

4 files changed

+49
-48
lines changed

mithril.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,8 @@ var coreRenderer = function($window) {
969969
updateNodes(dom, dom.vnodes, Vnode.normalizeChildren(vnodes), false, hooks, null, namespace === "http://www.w3.org/1999/xhtml" ? undefined : namespace)
970970
dom.vnodes = vnodes
971971
for (var i = 0; i < hooks.length; i++) hooks[i]()
972-
if ($doc.activeElement !== active) active.focus()
972+
// document.activeElement can return null in IE https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement
973+
if (active != null && $doc.activeElement !== active) active.focus()
973974
}
974975
return {render: render, setEventCallback: setEventCallback}
975976
}
@@ -1235,7 +1236,7 @@ m.request = requestService.request
12351236
m.jsonp = requestService.jsonp
12361237
m.parseQueryString = parseQueryString
12371238
m.buildQueryString = buildQueryString
1238-
m.version = "1.1.3"
1239+
m.version = "1.1.4"
12391240
m.vnode = Vnode
12401241
if (typeof module !== "undefined") module["exports"] = m
12411242
else window.m = m

0 commit comments

Comments
 (0)