Forums Forums Search & Filter Pro Select input UI opens with dropdown on iOS

  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #217626
    This reply has been marked as private.
    Trevor
    #217640

    Could you try adding this script to the page (taken from this github page: https://github.com/select2/select2/issues/4772 ):

    jQuery(document).on('select2:opening select2:open', function(e) {
    	console.log(navigator.userAgent);
    	if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
    		setTimeout(function(e) {
    			document.activeElement.blur();
    		}, 1);
    	}
    });

    If you add it directly into the page, it will need script tags around it.

    Anonymous
    #217741

    Ah right, I didn’t think to search Select2’s issues. Thanks Trevor, that fixes it!

Viewing 3 posts - 1 through 3 (of 3 total)