aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/multiple-remote.html3
-rw-r--r--demos/autocomplete/multiple.html5
2 files changed, 3 insertions, 5 deletions
diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html
index 00d739967..378e449d5 100644
--- a/demos/autocomplete/multiple-remote.html
+++ b/demos/autocomplete/multiple-remote.html
@@ -47,8 +47,7 @@
}
},
focus: function() {
- // prevent value inserted on focus, update liveRegion instead
- $( this ).data( "autocomplete" ).liveRegion.text( ui.item.label );
+ // prevent value inserted on focus
return false;
},
select: function( event, ui ) {
diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html
index 3d1326591..e3f84b65d 100644
--- a/demos/autocomplete/multiple.html
+++ b/demos/autocomplete/multiple.html
@@ -59,9 +59,8 @@
response( $.ui.autocomplete.filter(
availableTags, extractLast( request.term ) ) );
},
- focus: function( event, ui ) {
- // prevent value inserted on focus, update liveRegion instead
- $( this ).data( "autocomplete" ).liveRegion.text( ui.item.label );
+ focus: function() {
+ // prevent value inserted on focus
return false;
},
select: function( event, ui ) {