I am utilizing a library named Sidr to generate sidebars. I have included all the necessary jQuery and CSS, and while it is operational, I find that I need to double click instead of just one click to open the sidebar.
Here is the code snippet. I essentially want to replicate this example, but it requires two clicks to function:
<a id="left-menu" href="#left-menu">Left Menu</a>
<a id="right-menu" href="#right-menu">Right Menu</a>
<script>
$(document).ready(function() {
$('#left-menu').sidr({
name: 'sidr-left',
side: 'left' // Default value
});
$('#right-menu').sidr({
name: 'sidr-right',
side: 'right'
});
});
</script>
Removing TurboLinks resolves the issue, although I do require TurboLinks functionality as well.
Any recommendations or alternatives?