I’m assuming you’re correct and this is an older element, which I would prefer not to use. I assume deprecated elements are deprecated for a reason and will no longer be supported, and/or, have been replaced with something else. Is this correct?
So, this said, please see capture below. I am trying to create an accordion menu for mobile devices. The element on the right is a button, the accordion is in the center and a logo on the left. I have set a Toggle-hash so the button opens the menu, however, a 2nd button-click does not close the menu. In searching this forum, I found a similar post and ThemCo support provided the custom javascript below, however, this does not seem to be working in my implementation. The post is back from 2018, so, perhaps this JS can no longer work??
(function($){
$(’.toggle-accordion’).on(‘click touchstart’,function(){
$(‘button.x-acc-header’).trigger(‘click’);
});
})(jQuery);
Ideally, I would like the button element to open and close the accordion; but, I would also prefer if clicking the accordion element itself did not open/close the accordion. Is this possible?