Skip to content

Commit 231cce0

Browse files
committed
Merge pull request select2#1187 from barryhunter/patch-2
Bugfix for Resetting Scrollpoint on Multi-select
2 parents 5c709ba + 4e8da11 commit 231cce0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,7 +2644,7 @@ the specific language governing permissions and limitations under the Apache Lic
26442644
},
26452645

26462646
// multi
2647-
postprocessResults: function () {
2647+
postprocessResults: function (dummy1, dummy2, noHighlightUpdate) {
26482648
var val = this.getVal(),
26492649
choices = this.results.find(".select2-result"),
26502650
compound = this.results.find(".select2-result-with-children"),
@@ -2667,7 +2667,7 @@ the specific language governing permissions and limitations under the Apache Lic
26672667
}
26682668
});
26692669

2670-
if (this.highlight() == -1){
2670+
if (this.highlight() == -1 && noHighlightUpdate !== false){
26712671
self.highlight(0);
26722672
}
26732673

0 commit comments

Comments
 (0)