Custom Query (7259 matches)
Results (13 - 15 of 7259)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#9226 | wontfix | animated addClass with many children is slow | ||
Description |
As per this example, When using $('div.outer').addClass('myanimatedclass', { children: true, duration: 1000 }); if div.outer has many children the performance is slow, this appears to because the animateClass method uses the "any element" selector "*". Could this either only select children affected by the adding of the class, or, allow a selector to be passed in to select the children? e.g. $('div.outer').addClass('myanimatedclass', { children: true, childSelector: 'div.inner', duration: 1000 }); |
|||
#9203 | invalid | Search cancelled when triggered on select (regression from 1.8) | ||
Description |
It's now impossible to trigger another search during the select callback. I have a single input field that will first show suggestions for a property A. Once selected, the input is supposed to show suggestions values for the property A right away: .autocomplete{ minLength: 0, source: function( request, response ) { ... some Ajax source that is working fine }, select: function( event, ui ) { ... adapted for ticket if ( A === null) // Switch to property value selection A = ui.item.value; input.autocomplete('search'); return false; } VAL = ui.item.value; return true; } }); While searching the cause, I found that it's happening in the usage of the newly menu widget. If you look at line 284 (handler when selecting a value): if ( false !== this._trigger( "select", event, { item: item } ) ) { this._value( item.value ); } // reset the term after the select event // this allows custom select handling to work properly this.term = this._value(); this.close( event ); this.selectedItem = item; The close event is called after the trigger on the select callback and since close is setting cancelSearch at true on any case, I can't prevent my triggered search to be cancelled. I notice that both putting the line this.close( event ) before the select trigger or using this._close( event ) instead is fixing my problem, but I haven't done enough tests to see if there's any other consequences. Working jsFiddle (only have to switch between jquery UI 1.8.9 and 1.9.2 to see the difference) http://jsfiddle.net/DYWZG/13/ |
|||
#8340 | duplicate | Error: this.placeholder[0].parentNode is null | ||
Description |
In function this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
A check is missing IMO. In my code |