diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-16 09:43:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-16 09:43:49 -0400 |
commit | 85639bf0fa39427d8de1dc60131f746045ba4ddc (patch) | |
tree | 2cbe8d2bef8e16c97568a7fb50ffbf59d641a78e /demos/autocomplete/multiple.html | |
parent | 5912d36374499e15d8d184df5ca122a4c4a4990f (diff) | |
download | jquery-ui-85639bf0fa39427d8de1dc60131f746045ba4ddc.tar.gz jquery-ui-85639bf0fa39427d8de1dc60131f746045ba4ddc.zip |
Autocomplete: Update live region if focus event is canceled. Remove live region on destroy.
Diffstat (limited to 'demos/autocomplete/multiple.html')
-rw-r--r-- | demos/autocomplete/multiple.html | 5 |
1 files changed, 2 insertions, 3 deletions
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 ) { |