It's causing a conflict issue, have you checked your console.log? As i have fixed the issue previously, so i can help you. Kindly share the Store URL.
I have checked, there is nothing in the console log. It means, we have to make this functionality as per your requirement. Please let me know, what theme you are using.
Yes,we can do via custom code as per your requirement. It requires ajex code functionality.