Keypad disappear issue in chrome browser for mobile device

Keypad disappear issue in chrome browser for mobile device

Hi JQuery support team,

We are using jquery-1.11.1 version. We have keypad disappear issue in chrome browser for mobile devices. If we open bootstrap popup in mobile chrome browser and try to enter text in any field then keypad disappear instantly. 

This issue comes only when we have any password saved in browser for our website. If we clear all passwords from chrome browser then its working fine. We have multiple bootstrap popups in our page with multiple password fields. If we change all those password fields to normal text boxes then also it is working fine with password saved in chrome browser. 

After detailed investigation, we found that issue comes due to following code in jQuery file:

============== Code START ======================

// Create "bubbling" focus and blur events
        if ( !support.focusinBubbles ) {
        jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {

        // Attach a single capturing handler on the document while someone wants focusin/focusout
        var handler = function( event ) {
        jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
        };

        jQuery.event.special[ fix ] = {
        setup: function() {
        var doc = this.ownerDocument || this,
        attaches = jQuery._data( doc, fix );

        if ( !attaches ) {
        doc.addEventListener( orig, handler, true );
        }
        jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
        },
        teardown: function() {
        var doc = this.ownerDocument || this,
        attaches = jQuery._data( doc, fix ) - 1;

        if ( !attaches ) {
        doc.removeEventListener( orig, handler, true );
        jQuery._removeData( doc, fix );
        } else {
        jQuery._data( doc, fix, attaches );
        }
        }
        };
        });
        }

============== Code END ======================

If we comment this code from jQuery file then it is working fine. This issue come in chrome browser only and we have latest version of chrome browser. We have faced this issue in all devices.

Please check and do the needful asap as we have all popups not working with mobile device. Waiting for your favorable answer...

Thanks & Regards
Upendra Chaudhari