Skip to content

Commit 72b2758

Browse files
author
Tomas Kirda
committed
Set params after onSearchStart has been called, closes #561
1 parent 8d07d2c commit 72b2758

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,13 @@
558558
ajaxSettings;
559559

560560
options.params[options.paramName] = q;
561-
params = options.ignoreParams ? null : options.params;
562561

563562
if (options.onSearchStart.call(that.element, options.params) === false) {
564563
return;
565564
}
566565

566+
params = options.ignoreParams ? null : options.params;
567+
567568
if ($.isFunction(options.lookup)){
568569
options.lookup(q, function (data) {
569570
that.suggestions = data.suggestions;

0 commit comments

Comments
 (0)