Skip to content

Commit

Permalink
Merge pull request #153 from techlab/master
Browse files Browse the repository at this point in the history
Fix #152: History back on step1 not working
  • Loading branch information
techlab authored Oct 3, 2022
2 parents dbd68ca + 4b29697 commit 2c24925
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/js/jquery.smartWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =

var idx = this._getURLHashIndex();

idx = idx ? idx : this.options.selected;
idx = idx !== false ? idx : this.options.selected;

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

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

var idx = _this3._getURLHashIndex();

if (idx && _this3._isShowable(_this3.steps.eq(idx))) {
if (idx !== false && _this3._isShowable(_this3.steps.eq(idx))) {
e.preventDefault();

_this3._showStep(idx);
Expand Down
Loading

0 comments on commit 2c24925

Please sign in to comment.