Custom Query (7259 matches)
Results (121 - 123 of 7259)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#15082 | fixed | jQuery Autocomplete Duplicate Remove event listener | ||
Description |
While trying to determine what was slowing down my autocomplete text box, I noticed that every time the user types in the target text box the number of event listeners would go up. It looks like autocomplete (or the widget factory?) is adding duplicate "remove" events to the target. This can be reproduced by adding the following line to the default autocomplete example at https://jqueryui.com/autocomplete/ . response: function (e, ui) { console.log( jQuery._data( $("#tags")[0], "events" ) ); } When looking at the results in chrome's tools I can see the number of event listeners go up every time the the user types in the target text box. Object {remove: Array[3], keydown: Array[1], keypress: Array[1], input: Array[1]... Object {remove: Array[5], keydown: Array[1], keypress: Array[1], input: Array[1]... Object {remove: Array[7], keydown: Array[1], keypress: Array[1], input: Array[1]... Object {remove: Array[9], keydown: Array[1], keypress: Array[1], input: Array[1]... http://plnkr.co/edit/Jk2xg3ZjJ5jS5mgP1zHZ?p=preview is a demo of the remove events growing. |
|||
#15081 | notabug | autoFocus=true causes one UX issue | ||
Description |
Hi, I have integrated the autocomplete component for which I have set autoFocus=true in order to have the first item highlighted in the dropdown list of filtered results. Quick note here: in general the "highlighted" item is selected when user clicks on it or press tab or enter. Issue: When the first item is highlighted after expanding the dropdown, if the user presses Enter or Tab, the item is not selected Steps to reproduce:
Expected result: Highlighted item (in that case the first one) should become selected Thank you for considering my request |
|||
#15078 | fixed | Selectmenu: calling refresh repeatedly makes it slower and slower | ||
Description |
Following up on case #15049: I have encountered a similar problem in my application, where selectmenu("refresh") gets slower and slower. Please check http://jsbin.com/nibibohigi/edit?html,js,output for a basic example. I have seen that the this.bindings = this.bindings.add( element ) in the _on method in $.Widget.prototype causes the problem. The list of bindings increases on each refresh - it ends up containing thousands of entries. |