Skip to content

Commit dd9dd89

Browse files
committed
fix(datepicker): Don't emit input if value date is disabled
1 parent 64460f2 commit dd9dd89

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/components/Datepicker.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ export default {
613613
614614
if (isDateDisabled) {
615615
parsedValue = null
616-
this.$emit('input', parsedValue)
617616
}
618617
this.setValue(parsedValue)
619618
}

test/unit/specs/Datepicker/Datepicker.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ describe('Datepicker shallowMounted', () => {
267267
})
268268

269269
expect(wrapperTemp.vm.selectedDate).toEqual(null)
270-
expect(wrapperTemp.emitted('input')).toBeTruthy()
271270

272271
wrapperTemp.destroy()
273272
})

0 commit comments

Comments
 (0)