Skip to content
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

v-model not updating #144

Open
andreasadelino opened this issue Apr 18, 2021 · 3 comments
Open

v-model not updating #144

andreasadelino opened this issue Apr 18, 2021 · 3 comments

Comments

@andreasadelino
Copy link

andreasadelino commented Apr 18, 2021

Version: 1.1.6

I'm using the model as string and triggering a model clean like:

this.form.entryTime = '';
this.form.departureTime = '';

but the element still remains filled with values while my model have empty value.
This issue looks like #27, but it still happen.

@mursang
Copy link

mursang commented Aug 19, 2021

any solution?

@dhavalbhavsar
Copy link

dhavalbhavsar commented Mar 29, 2022

@mursang I understand it's too late but i found work around.
here the v-model updated but display value not reflected
so make ref to your vue-timepicker
eg.

then

this.$refs.start_time.hour = '';
this.$refs.start_time.minute = '';
this.$refs.start_time.second = '';
this.$refs.start_time.apm = '';

here that display text also reflect

Note: it's for string input

@nt-chinbat
Copy link

It seems setting v-model value to string of 'HH:mm' will clear display value of component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants