2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

Pass result index to formatResult callback, resolves #485

This commit is contained in:
Tomas Kirda 2016-05-30 12:39:47 -05:00
parent 65f431b7b0
commit 615fd80030

View File

@ -680,7 +680,7 @@
html += formatGroup(suggestion, value, i);
}
html += '<div class="' + className + '" data-index="' + i + '">' + formatResult(suggestion, value) + '</div>';
html += '<div class="' + className + '" data-index="' + i + '">' + formatResult(suggestion, value, i) + '</div>';
});
this.adjustContainerWidth();