diff options
Diffstat (limited to 'ui/autocomplete.js')
-rw-r--r-- | ui/autocomplete.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/autocomplete.js b/ui/autocomplete.js index d53a1d5e3..3f428ea3d 100644 --- a/ui/autocomplete.js +++ b/ui/autocomplete.js @@ -130,7 +130,9 @@ $.widget( "ui.autocomplete", { break; case keyCode.ESCAPE: if ( this.menu.element.is( ":visible" ) ) { - this._value( this.term ); + if ( !this.isMultiLine ) { + this._value( this.term ); + } this.close( event ); // Different browsers have different default behavior for escape // Single press can mean undo or clear |