Skip to content

Commit dd32368

Browse files
committed
Merge pull request select2#2364 from joshuajonah/master
Stopped refresh to top when `closeOnSelect: false`
2 parents 5a18492 + 64256f2 commit dd32368

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
@@ -3155,7 +3155,7 @@ the specific language governing permissions and limitations under the Apache Lic
31553155
}
31563156
});
31573157

3158-
if (this.highlight() == -1 && noHighlightUpdate !== false){
3158+
if (this.highlight() == -1 && noHighlightUpdate !== false && this.opts.closeOnSelect === true){
31593159
self.highlight(0);
31603160
}
31613161

0 commit comments

Comments
 (0)