Skip to content

Commit

Permalink
babakhani#275 fix onSelect event bug
Browse files Browse the repository at this point in the history
  • Loading branch information
babakhani committed Feb 8, 2019
1 parent ad743aa commit 200f0ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Binary file removed dist/.single.html.swp
Binary file not shown.
11 changes: 9 additions & 2 deletions dist/js/persian-datepicker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
** persian-datepicker - v1.1.4b
** Reza Babakhani <[email protected]>
** http://babakhani.github.io/PersianWebToolkit/docs/datepicker
** Under MIT license
*/

(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -2005,7 +2012,7 @@ var Navigator = function () {
that.model.state.setViewDateTime('month', month);
that.model.view.render();
that.model.options.monthPicker.onSelect(month);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});
}

Expand All @@ -2030,7 +2037,7 @@ var Navigator = function () {
that.model.state.setViewDateTime('year', year);
that.model.view.render();
that.model.options.yearPicker.onSelect(year);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/js/persian-datepicker.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/es6/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class Navigator {
that.model.state.setViewDateTime('month', month);
that.model.view.render();
that.model.options.monthPicker.onSelect(month);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});
}

Expand All @@ -262,7 +262,7 @@ class Navigator {
that.model.state.setViewDateTime('year', year);
that.model.view.render();
that.model.options.yearPicker.onSelect(year);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});
}
}
Expand Down

0 comments on commit 200f0ad

Please sign in to comment.