Skip to content

Commit

Permalink
add default check
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Oct 23, 2016
1 parent 26013e1 commit 86dab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Picker (options, config) {
this.options = options
this.needDefFormat = !this.options.format
this.init()
if (this.options.format && utils.isStr(this.options.default)) {
if (this.options.format && this.options.default && utils.isStr(this.options.default)) {
this.options.default = utils.parseDate(this.options.default, this.options.format)
}
this._init()
Expand Down

0 comments on commit 86dab9a

Please sign in to comment.