Closed jacob-g closed 8 months ago
Cannot reproduce on Chrome mobile so this seems to be browser-specific.
I am getting the following console error:
Uncaught TypeError: sidebarToggle.computedStyleMap is not a function
Relevant code:
var sidebarToggle = document.querySelector('#navigation .sidebar-toggle')
sidebarToggle.addEventListener('click', function(){
if (sidebarToggle.computedStyleMap().get('display').value === 'none') return; // this is the line that fails
if (!sidebarShown) {
document.querySelector('#view .inner .left').style.left = '0';
} else {
document.querySelector('#view .inner .left').style.left = null;
}
sidebarShown = !sidebarShown;
});
From MDN: https://developer.mozilla.org/en-US/docs/Web/API/Element/computedStyleMap computedStyleMap is not compatible with Firefox
Reported by ahmetlii
Steps to reproduce:
Expected behavior: sidebar opens Actual behavior: sidebar does not open (nothing happens)