Skip to content

Commit 64256f2

Browse files
committed
Stopped refresh to top when closeOnSelect: false
Not really sure how the noHighlightUpdate variable is supposed to work, it is undefined all the time so it appears to be broken. I just referred to `this.opts.closeOnSelect` to get the status directly.
1 parent 52425f9 commit 64256f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3107,7 +3107,7 @@ the specific language governing permissions and limitations under the Apache Lic
31073107
}
31083108
});
31093109

3110-
if (this.highlight() == -1 && noHighlightUpdate !== false){
3110+
if (this.highlight() == -1 && noHighlightUpdate !== false && this.opts.closeOnSelect === true){
31113111
self.highlight(0);
31123112
}
31133113

0 commit comments

Comments
 (0)