Skip to content

Commit 2c24925

Browse files
authored
Merge pull request #153 from techlab/master
Fix #152: History back on step1 not working
2 parents dbd68ca + 4b29697 commit 2c24925

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/js/jquery.smartWizard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
219219

220220
var idx = this._getURLHashIndex();
221221

222-
idx = idx ? idx : this.options.selected;
222+
idx = idx !== false ? idx : this.options.selected;
223223

224224
var idxShowable = this._getShowable(idx - 1, 'forward');
225225

@@ -356,7 +356,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
356356

357357
var idx = _this3._getURLHashIndex();
358358

359-
if (idx && _this3._isShowable(_this3.steps.eq(idx))) {
359+
if (idx !== false && _this3._isShowable(_this3.steps.eq(idx))) {
360360
e.preventDefault();
361361

362362
_this3._showStep(idx);

0 commit comments

Comments
 (0)