1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Merge pull request #1187 from barryhunter/patch-2

Bugfix for Resetting Scrollpoint on Multi-select
This commit is contained in:
Igor Vaynberg 2013-05-06 15:25:55 -07:00
commit 231cce0add

View File

@ -2644,7 +2644,7 @@ the specific language governing permissions and limitations under the Apache Lic
},
// multi
postprocessResults: function () {
postprocessResults: function (dummy1, dummy2, noHighlightUpdate) {
var val = this.getVal(),
choices = this.results.find(".select2-result"),
compound = this.results.find(".select2-result-with-children"),
@ -2667,7 +2667,7 @@ the specific language governing permissions and limitations under the Apache Lic
}
});
if (this.highlight() == -1){
if (this.highlight() == -1 && noHighlightUpdate !== false){
self.highlight(0);
}