Hi I have an old CSS snippet.
Is this still necessary?
/* Theme.co: Menu Button Bug Fix 2023 */
.ps__rail-y {
display: none !important;
}
Best regards,
Hannes
Hey Hannes,
That code is related to Perfect Scrollbar and that was already removed in Pro 6.4.22. You can safely remove it.
Thank you. So the JS code can be removed too:
// Theme.co: Menu Button Bug Fix 2023
// Setup and fix menu buttons inside an off canvas
document.addEventListener("load", function() {
// Get menu items
var items = document.querySelectorAll(".x-anchor-menu-item");
for (var i = 0; i < items.length; ++i) {
var item = items[i];
//console.log(item); //Make sure we're only adding it where needed
// Touch event I don't think this issue happens
item.addEventListener("touchstart", function(e) {
if (!item.href) {
return;
}
location.href = item.href;
}, true);
};
});