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 | |
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')
-rw-r--r-- | demos/autocomplete/multiple-remote.html | 3 | ||||
-rw-r--r-- | demos/autocomplete/multiple.html | 5 |
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 ) { |