Skip to content

Commit e88babf

Browse files
committed
changeSameValue option
1 parent ec73a59 commit e88babf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $.widget( "ui.autocomplete", {
1919
appendTo: "body",
2020
delay: 300,
2121
minLength: 1,
22+
changeSameValue: false,
2223
position: {
2324
my: "left top",
2425
at: "left bottom",
@@ -300,7 +301,7 @@ $.widget( "ui.autocomplete", {
300301
},
301302

302303
_change: function( event ) {
303-
if ( this.previous !== this.element.val() ) {
304+
if ( this.previous !== this.element.val() || this.options.changeSameValue ) {
304305
this._trigger( "change", event, { item: this.selectedItem } );
305306
}
306307
},

0 commit comments

Comments
 (0)