Skip to content

Commit

Permalink
Setting datetime model to null does not reset text field.
Browse files Browse the repository at this point in the history
reference from:
darrenfang#93
  • Loading branch information
caesarleong authored Mar 3, 2021
1 parent f9220b8 commit 165e199
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/DatetimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ export default {
methods: {
init() {
if (!this.datetime) {
this.resetPicker()
this.date = DEFAULT_DATE
this.time = DEFAULT_TIME
return
}
Expand Down

0 comments on commit 165e199

Please sign in to comment.