Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic 2 alpha.45 sidemenu broken

$
0
0

This stupid problem has been driving me crazy. I made a slightly different temp solution in case you or someone else was interested. This problem only seems to happen for me when I close the side menu, so I just added this to each page's constructor.

//Ionic displays the backdrop by adding inline opacity and transform styles, so just overwrite these
var backDrop = document.getElementsByClassName("backdrop")[0];
//Hide it
backDrop.setAttribute("style","");
//Fail Safe
backDrop.setAttribute("onclick","this.setAttribute('style','');");
//Delayed override
setTimeout(function(){
backDrop.setAttribute("style","");
}, 1000);


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>