Browse files

Autocomplete: Check for contenteditable via isContentEditable propert…

…y rather than [contenteditable] selector. Properly accounts for properties vs. attributes and 'inherit'.
  • Loading branch information...
1 parent 535ef2a commit 405cbefe5cf0b6b381ae19242f4770f2ffc4c1a0 @scottgonzalez scottgonzalez committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.autocomplete.js
View
2 ui/jquery.ui.autocomplete.js
@@ -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;

0 comments on commit 405cbef

Please sign in to comment.