diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-30 20:45:48 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-30 20:45:48 -0400 |
commit | c5ba0535cf8fad222bf54249fb74339faafa9310 (patch) | |
tree | f0689df45e10bf9e95adcdd0a9c7d52d9a0b305f /ui/jquery.ui.autocomplete.js | |
parent | 87f78973b919130880a42651596edbae0b2a7741 (diff) | |
download | jquery-ui-c5ba0535cf8fad222bf54249fb74339faafa9310.tar.gz jquery-ui-c5ba0535cf8fad222bf54249fb74339faafa9310.zip |
Autocomplete: Fixed setting of valueMethod for textareas. Fixes #7674 - Autocomplete doesn't work with textareas.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 3e0163682..b871715ba 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -51,7 +51,7 @@ $.widget( "ui.autocomplete", { suppressKeyPress, suppressInput; - this.valueMethod = this.element[ this.element.is( "input" ) ? "val" : "text" ]; + this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ]; this.element .addClass( "ui-autocomplete-input" ) |