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 @@ -67,14 +67,11 @@ $.widget( "ui.autocomplete", {
67
67
isTextarea = nodeName === "textarea" ,
68
68
isInput = nodeName === "input" ;
69
69
70
- this . isMultiLine =
71
- // Textareas are always multi-line
72
- isTextarea ? true :
73
- // Inputs are always single-line, even if inside a contentEditable element
74
- // IE also treats inputs as contentEditable
75
- isInput ? false :
76
- // All other element types are determined by whether or not they're contentEditable
77
- this . element . prop ( "isContentEditable" ) ;
70
+ // Textareas are always multi-line
71
+ // Inputs are always single-line, even if inside a contentEditable element
72
+ // IE also treats inputs as contentEditable
73
+ // All other element types are determined by whether or not they're contentEditable
74
+ this . isMultiLine = isTextarea || ! isInput && this . element . prop ( "isContentEditable" ) ;
78
75
79
76
this . valueMethod = this . element [ isTextarea || isInput ? "val" : "text" ] ;
80
77
this . isNewMenu = true ;
You can’t perform that action at this time.
0 commit comments