jQuery autocomplete plugin not focusing the next clicked field

后端 未结 3 594
萌比男神i
萌比男神i 2021-01-23 13:31

I\'m using the Jörn Zaefferer\'s jQuery autocomplete plugin which works great, except for a small bug: if a user begins typing in one field where the autocomplete is attached to

3条回答
  •  感情败类
    2021-01-23 13:52

    The fix is:

    Comment out lines 308-310 of the unpacked version:

    //if (wasVisible)
        // position cursor at end of input field
        //$.Autocompleter.Selection(input, input.value.length, input.value.length);
    

    And from Luca's post, comment out line 510:

    //input.focus();
    

    These both need to be commented out to make it work properly.

提交回复
热议问题