Please, try to use this custom js, in here : https://prnt.sc/hYNWTMvYdnUL you will see Custom Javascript field, paste this code there.
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.offcanvas-inner .offcanvas-menu-toggler').forEach(function (toggler) {
// Prevent Bootstrap from handling the same click
toggler.removeAttribute('data-bs-toggle');
toggler.addEventListener('click', function (e) {
e.preventDefault();
e.stopPropagation();
var targetSelector = toggler.getAttribute('data-bs-target');
if (!targetSelector) {
return;
}
var target = document.querySelector(targetSelector);
if (!target) {
return;
}
var isOpen = target.classList.contains('show');
if (isOpen) {
// Collapse
target.classList.remove('show');
toggler.classList.add('collapsed');
toggler.setAttribute('aria-expanded', 'false');
} else {
// Expand
target.classList.add('show');
toggler.classList.remove('collapsed');
toggler.setAttribute('aria-expanded', 'true');
}
});
});
});
Thanks.