Bugfix for Resetting Scrollpoint on Multi-select
Duplicating pull request #974 - which seemed to only fix it for 'single' version. Have copied the same condition into the one for 'multi' case. There may be a better way, but in my testing this seems to have worked.
This commit is contained in:
parent
8cb3698820
commit
4e8da110d6
@ -2553,7 +2553,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
},
|
},
|
||||||
|
|
||||||
// multi
|
// multi
|
||||||
postprocessResults: function () {
|
postprocessResults: function (dummy1, dummy2, noHighlightUpdate) {
|
||||||
var val = this.getVal(),
|
var val = this.getVal(),
|
||||||
choices = this.results.find(".select2-result"),
|
choices = this.results.find(".select2-result"),
|
||||||
compound = this.results.find(".select2-result-with-children"),
|
compound = this.results.find(".select2-result-with-children"),
|
||||||
@ -2576,7 +2576,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);
|
self.highlight(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user