Skip to content

a-datepicker does get new value when setting value by v-model/:value #2673

@anhpv315

Description

@anhpv315
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.4

Environment

Windows OS, Chrome Version 84.0.4147.105 (Official Build) (64-bit)

Reproduction link

https://github.com/sendya/ant-design-pro-vue.git

Steps to reproduce

I pushed data to by :value="BIRTHEXP" or v-model="BIRTHEXP". BIRTHEXP is momment type. cause I used it on modal, so I thought I can't use :default-value. the datepicker displayed date value well

What is expected?

I expected it works normally when I select a new date.

What is actually happening?

when I selected a new date on the popup, the display date on input was changed but changed back immediately. in UI, the date in popup was changed. however, the date in input still is old data. it looks like developer forgot to bind new data in that input.


in this time, I am using v-if to reload datepicker component like using :default-value. maybe It's a good interim solution to me. I hope you can update it in the next versions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions