Skip to content

Commit d901cd4

Browse files
committed
Autocomplete: Add removal TODOs for #7810
1 parent 1b80154 commit d901cd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/jquery.ui.autocomplete.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ $.widget( "ui.autocomplete", {
225225
// custom key handling for now
226226
input: $(),
227227
focus: function( event, ui ) {
228-
// back compat for _renderItem using item.autocomplete
228+
// back compat for _renderItem using item.autocomplete, via #7810
229+
// TODO remove the fallback, see #8156
229230
var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
230231
if ( false !== self._trigger( "focus", event, { item: item } ) ) {
231232
// use value to match what will end up in the input, if it was a key event
@@ -235,7 +236,8 @@ $.widget( "ui.autocomplete", {
235236
}
236237
},
237238
select: function( event, ui ) {
238-
// back compat for _renderItem using item.autocomplete
239+
// back compat for _renderItem using item.autocomplete, via #7810
240+
// TODO remove the fallback, see #8156
239241
var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );
240242
previous = self.previous;
241243

0 commit comments

Comments
 (0)