mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
FIX: document.activeElement can be null on IE11 (#9880)
This commit is contained in:
parent
26c7fa2c29
commit
675e9b81c6
@ -1175,7 +1175,7 @@ export default Controller.extend({
|
||||
const elem = document.querySelector("html");
|
||||
elem.classList.remove("fullscreen-composer");
|
||||
|
||||
document.activeElement.blur();
|
||||
document.activeElement && document.activeElement.blur();
|
||||
this.setProperties({ model: null, lastValidatedAt: null });
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user