Good day everyone,
I’m having werid issue on mobile.
I want the dropdown menu to open for user to select the categories or sort by anything and user should able to close the menu back by using the same button. However when I tab to close the menu I have to do double tab the button on mobile.
Here is the link: https://htc1.hometesterclub.com/au/en/Reviews please view it using mobile
Here is my javascirpt:
$(function () {
$(".dropdown").on("show.bs.dropdown", function (e) {
$(this).attr('closable', false);
});
$(".dropdown").on("hide.bs.dropdown", function (e) {
return $(this).attr('closable') == 'true';
});
$(".btn-review-filter").on('click', function () {
$(this).parent().attr('closable', true);
});
});
Thanks in advance.