Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix bug to allow format function and typeable enabled
  • Loading branch information
richard-aquarium committed Jun 21, 2019
commit 422a5435fc3d0d8985d5732a97feff2e52ef6a52
4 changes: 2 additions & 2 deletions src/components/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
this.input.blur()
}

if (this.typeable) {
if ((this.typeable) && (typeof this$1.format === 'string')) {
let typedDate

/**
Expand Down Expand Up @@ -228,7 +228,7 @@ export default {
this.typedDate = null
}

this.$emit('closeCalendar', true)
this.$emit('closeCalendar')
},
/**
* emit a clearDate event
Expand Down