Opened 6 years ago

Closed 6 years ago

#15205 closed bug (duplicate)

Autocomplete menu bindings not cleared

Reported by: prestonm-pughs Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:


When updating from 1.11.2 to 1.12.1 we noticed our autocomplete getting slower and slower the more we used it without refreshing the page.

I've traced this to the _suggest function in autocomplete where the DOM is emptied but the bindings are not resulting in thousands of references to DOM elements that do not exist.

_suggest: function( items ) {
   var ul =;
   this._renderMenu( ul, items );

I added a line to reset the bindings:

_suggest: function( items ) {
   var ul =; = $();
   this._renderMenu( ul, items );

I think a more complete solution would be to add a function in the Menu widget to clear both the DOM and bindings.

Change History (1)

comment:1 Changed 6 years ago by Scott González

Resolution: duplicate
Status: newclosed

Duplicate of #15095.

Note: See TracTickets for help on using tickets.