SoFunction
Updated on 2025-02-28

jQuery UI Autocomplete 1.8.* Chinese input correction method under firefox

Find the following code:

Copy the codeThe code is as follows:

.bind( "", function( event ) {
                if ( ) {
                    return;
                }

                clearTimeout( );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                = setTimeout(function() {
                    ( event );
                    self._change( event );
                }, 150 );
            });


Replace with:
Copy the codeThe code is as follows:

.bind( "", function( event ) {
                if ( ) {
                    return;
                }

                clearTimeout( );
                // clicks on the menu (or a button to trigger a search) will cause a blur event
                = setTimeout(function() {
                    ( event );
                    self._change( event );
                }, 150 );
}).bind('input',function (c) {//jQuery UI Autocomplete 1.8.* Chinese input correction
                ();
            });


After experience, it can be realized in 1.8.16-1.8.23 (currently the latest version).