]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Check for contenteditable via isContentEditable property rather than...
authorScott González <scott.gonzalez@gmail.com>
Mon, 25 Jun 2012 15:41:24 +0000 (11:41 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 25 Jun 2012 15:41:24 +0000 (11:41 -0400)
ui/jquery.ui.autocomplete.js

index f73fff96d53f6875ff4f80bdfeb58ae0270b0f75..665cf20665cc2f89d413fcf6267c09fc0f4f6e76 100644 (file)
@@ -55,7 +55,7 @@ $.widget( "ui.autocomplete", {
                // search term. #7799
                var suppressKeyPress, suppressKeyPressRepeat, suppressInput;
 
-               this.isMultiLine = this.element.is( "textarea,[contenteditable]" );
+               this.isMultiLine = this.element.is( "textarea" ) || this.element.prop( "isContentEditable" );
                this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ];
                this.isNewMenu = true;