Skip to content

Commit 405cbef

Browse files
committed
Autocomplete: Check for contenteditable via isContentEditable property rather than [contenteditable] selector. Properly accounts for properties vs. attributes and 'inherit'.
1 parent 535ef2a commit 405cbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $.widget( "ui.autocomplete", {
5555
// search term. #7799
5656
var suppressKeyPress, suppressKeyPressRepeat, suppressInput;
5757

58-
this.isMultiLine = this.element.is( "textarea,[contenteditable]" );
58+
this.isMultiLine = this.element.is( "textarea" ) || this.element.prop( "isContentEditable" );
5959
this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ];
6060
this.isNewMenu = true;
6161

0 commit comments

Comments
 (0)