FIX: document.activeElement can be null on IE11 (#9880)

This commit is contained in:
Joffrey JAFFEUX 2020-05-26 16:51:55 +02:00 committed by GitHub
parent 26c7fa2c29
commit 675e9b81c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
},