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