mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: document.activeElement can be null on IE11 (#9880)
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user