Skip to content

Commit b70c246

Browse files
authored
Merge pull request #390 from CupIvan/patch-1
bugfix does not call onFinish on Init
2 parents 16878c6 + 1e259d2 commit b70c246

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/ion.rangeSlider.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
this.no_diapason = false;
170170
this.is_key = false;
171171
this.is_update = false;
172+
this.is_first_update = true;
172173
this.is_start = true;
173174
this.is_finish = false;
174175
this.is_active = false;
@@ -1359,9 +1360,10 @@
13591360
if (!this.is_resize && !this.is_update && !this.is_start && !this.is_finish) {
13601361
this.callOnChange();
13611362
}
1362-
if (this.is_key || this.is_click) {
1363+
if (this.is_key || this.is_click || this.is_first_update) {
13631364
this.is_key = false;
13641365
this.is_click = false;
1366+
this.is_first_update = false;
13651367
this.callOnFinish();
13661368
}
13671369

0 commit comments

Comments
 (0)