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", {
6767 isTextarea = nodeName === "textarea" ,
6868 isInput = nodeName === "input" ;
6969
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" ) ;
7875
7976 this . valueMethod = this . element [ isTextarea || isInput ? "val" : "text" ] ;
8077 this . isNewMenu = true ;
You can’t perform that action at this time.
0 commit comments