jQuery autocomplete plugin not focusing the next clicked field

后端 未结 3 589
萌比男神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 14:16

    I've been kind enough to look at the code for you, uncomment this line:

    // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
    input.focus();
    

    In jquery.autocomplete.js line 583.

提交回复
热议问题