Skip to content

Commit

Permalink
fix(es6): Use destructuring variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Feb 10, 2018
1 parent 533b1ef commit 6a30dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default class DatePicker {
this.options.onSelect) {
this.options.onSelect(new Date(year, month, day));
}
this.element.value = this._getFormatedDate((new Date(date[0], date[1], date[2])), this.options.dateFormat);
this.element.value = this._getFormatedDate((new Date(year, month, day)), this.options.dateFormat);
if (this.options.closeOnSelect) {
this.hide();
}
Expand Down

0 comments on commit 6a30dcf

Please sign in to comment.