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

[Bug] Don't see input changed on sub-property v-model #761

Open
vincenzobologna opened this issue Feb 16, 2024 · 0 comments
Open

[Bug] Don't see input changed on sub-property v-model #761

vincenzobologna opened this issue Feb 16, 2024 · 0 comments

Comments

@vincenzobologna
Copy link

vincenzobologna commented Feb 16, 2024

Vue2-datepicker version: 3.11.1
Vue version: 2.7.14
Browser: Chrome 121.0.6167.184

Steps to reproduce

input text remain blank (or with older value of form data) if date field is on sub-property of form. For example date works if i have a filed like:
form.date

but it doesn't works if is on:
form.subfield.date

In Vue debug console i see the form field is correcly compiled, but i can't see on browser input date filled.

Reproduction Link or Source Code

Working Code:
<vue-date-picker v-model="form.date" value-type="YYYY-MM-DD" format="YYYY-MM-DD" input-class="px-2 py-1 outline-none" popup-class="" />

Not working code:
<vue-date-picker v-model="form.subfield.date" value-type="YYYY-MM-DD" format="YYYY-MM-DD" input-class="px-2 py-1 outline-none" popup-class="" />

I already tried to force update with change event, but unsuccessfully.

Expected behavior

Date field input field filled with new selected date.

Actual behavior

Date input field doen't populate with new selected date.

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

1 participant