mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Autocomplete: Check for contenteditable via isContentEditable property rather than [contenteditable] selector. Properly accounts for properties vs. attributes and 'inherit'.
This commit is contained in:
2
ui/jquery.ui.autocomplete.js
vendored
2
ui/jquery.ui.autocomplete.js
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user