-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting datetime model to null does not reset text field. #93
Comments
Hi, Nice component for Date Time, I am suffering from this exact same problem. Any plans to push this update anytime soon to npm repo ? I am running 2.1.1 and it is not in there ... Thanks |
me too - any suggested idea's on this? |
I was able to workaround this creating a ref to the element and calling <v-datetime-picker v-model="myDateTime" ref="myInput" /> //...
watch: {
myDateTime (val) {
if (!val) {
this.$refs.myInput.clearHandler()
}
}
}
//... I know this isn't the ideal solution, but I'm using this when a fix is not provided |
Changing init method to this solved the problem.
The text was updated successfully, but these errors were encountered: