Skip to content

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

@vincenzobologna

Description

@vincenzobologna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions