File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,11 @@ $.widget( "ui.autocomplete", {
76
76
isTextarea = nodeName === "textarea" ,
77
77
isInput = nodeName === "input" ;
78
78
79
- this . isMultiLine =
80
- // Textareas are always multi-line
81
- isTextarea ? true :
82
- // Inputs are always single-line, even if inside a contentEditable element
83
- // IE also treats inputs as contentEditable
84
- isInput ? false :
85
- // All other element types are determined by whether or not they're contentEditable
86
- this . element . prop ( "isContentEditable" ) ;
79
+ // Textareas are always multi-line
80
+ // Inputs are always single-line, even if inside a contentEditable element
81
+ // IE also treats inputs as contentEditable
82
+ // All other element types are determined by whether or not they're contentEditable
83
+ this . isMultiLine = isTextarea || ! isInput && this . element . prop ( "isContentEditable" ) ;
87
84
88
85
this . valueMethod = this . element [ isTextarea || isInput ? "val" : "text" ] ;
89
86
this . isNewMenu = true ;
You can’t perform that action at this time.
0 commit comments