News:

Support the VirtueMart project and become a member

Main Menu

Custom fields and on-screen keyboard

Started by jbrailas, June 22, 2020, 16:00:15 PM

Previous topic - Next topic

jbrailas

Hello, I have implemented multivariant custom fields into an e-shop to provide products variations.
Everything works ok but the on-screen keyboard opens when the user select a variation in the dropdown menu using a mobile device.
How do I prevent the keyboard to pop up?

jbrailas

#1
No replies? Wow..  :(
Well, I've solved it myself.
if anyone interested, here you go (using custom javascript code):

jQuery(document).ready(function() {
   jQuery('body').on('click','.chzn-container',function(){
      document.activeElement.blur();
   });   
});