Skip to content

Commit

Permalink
no-animation fix if #app is not found (#2262)
Browse files Browse the repository at this point in the history
* no-animation fix if #app is not found

* Update App.html

Co-authored-by: Stanley Hsu <ching.hsiang.hsu@sap.com>
  • Loading branch information
hardl and stanleychh authored Sep 9, 2021
1 parent a7fca72 commit cb9884e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/App.html
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,10 @@
if (hideSideNav != obj.hideSideNav) {
noAnimation = true;
setTimeout(() => {
document.querySelector('#app').classList.remove('no-animation');
const appNode = document.querySelector('#app');
if(appNode) {
appNode.classList.remove('no-animation');
}
});
}
hideSideNav = obj.hideSideNav;
Expand Down

0 comments on commit cb9884e

Please sign in to comment.