VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jbrailas on June 22, 2020, 16:00:15 PM

Title: Custom fields and on-screen keyboard
Post by: jbrailas on June 22, 2020, 16:00:15 PM
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?
Title: Re: Custom fields and on-screen keyboard
Post by: jbrailas on June 23, 2020, 15:36:39 PM
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();
   });   
});