Skip to content

Commit

Permalink
fix: "value" is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
talkhabi committed Feb 10, 2022
1 parent b28ce3f commit 0a491b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/picker/Vue3PersianDatetimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,6 @@ export default {
watch: {
type: { handler: 'setType', immediate: true },
view: { handler: 'setView', immediate: true },
value: { handler: 'updateDates', immediate: true },
modelValue: { handler: 'updateDates', immediate: true },
min: { handler: 'setMinMax', immediate: true },
max: { handler: 'setMinMax', immediate: true },
Expand Down Expand Up @@ -1456,7 +1455,7 @@ export default {
}
},
updateDates(payload) {
if (this.isDataArray && !payload) payload = []
if (!payload) payload = this.isDataArray ? [] : ''
// fix: don't update dates if they are already up to date
if (this.date.clone && payload.toString() === this.outputValue.toString())
Expand Down

0 comments on commit 0a491b8

Please sign in to comment.