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

[RangePicker]disabled won't work with show-time when dates are the same and time not #5286

Closed
1 task done
billychannnnnn opened this issue Feb 23, 2022 · 3 comments
Closed
1 task done

Comments

@billychannnnnn
Copy link

billychannnnnn commented Feb 23, 2022

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

Version

3.0.0-beta.10

Environment

Vue3.x、Chrome latest、MacOS

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Set disabled = [false, true]. Set end time with a initial value.
  2. Select a start time smaller than end time;
  3. Set start time to same date as end time but bigger time.(eg. 2022-2-25 01:00 - 2022-2-25 00:00)

What is expected?

Setting to start time failed and no change on end time.

What is actually happening?

Start time and end time would exchange even when end time is disabled.

@tangjinzhou
Copy link
Member

@billychannnnnn
Copy link
Author

try use disabledTime like: https://next.antdv.com/components/date-picker-cn#components-date-picker-demo-disabled-date

Seems disabledTime can‘t meet my need. Just want to make sure that users can only change start time.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants