From 309324656069ebace3a087a683418db9e7840e38 Mon Sep 17 00:00:00 2001 From: Casey Holzer Date: Sun, 31 Mar 2019 11:38:57 -0600 Subject: [PATCH] only override showTick option if show-tick class is set (#2126) --- js/bootstrap-select.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index 44968e09b..10d439ded 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -883,7 +883,10 @@ this.multiple = this.$element.prop('multiple'); this.autofocus = this.$element.prop('autofocus'); - this.options.showTick = this.$element[0].classList.contains('show-tick'); + + if (this.$element[0].classList.contains('show-tick')) { + this.options.showTick = true; + } this.$newElement = this.createDropdown(); this.$element