Skip to content

When i use hackValue in RangePicker, i cant view the correct Date. #6664

@coolwehon

Description

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

Version

3.2.20

Environment

ant-design-vue: 3.2.x vue: 3.2.x

Reproduction link

Edit on CodeSandbox

Steps to reproduce

when i select a date not in this month , or use the preset range: '上一个月'. it can select right. But when i click the range-picker next time. the view panel will change to this month.

What is expected?

the view panel should show the selcet month to the next month.

What is actually happening?

yes, i think it is because the hackValue, when using hackValue, and then click the range-picker, the range-picker will listen in the hackValue and detect the hackValue is an empty array, the view panel will set this month to be a default. But the view panel should be set in the month we select. HackValue hurt a lot of normal function, it cost a lot to adapte it

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