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

docs: fix invalid disabledDate of RangePicker demo #27112

Merged
merged 2 commits into from
Oct 20, 2020

Conversation

JuniorTour
Copy link
Contributor

@JuniorTour JuniorTour commented Oct 12, 2020

Close #26885

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

Close #26885

💡 Background and solution

The old logic of onCalendarChange will set dates to [Moment, null], which makes disabledDate invalid, 7 days limit will have no effect.

See #26885 for detail.

📝 Changelog

Language Changelog
🇺🇸 English fix invalid disabledDate of RangePicker demo
🇨🇳 Chinese 修复时间范围选择组件 disabledDate 失效的问题

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

View rendered components/date-picker/demo/select-in-range.md

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Oct 12, 2020

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Oct 12, 2020

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 12, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e816777:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Oct 12, 2020

Codecov Report

Merging #27112 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #27112   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          388       388           
  Lines         7421      7421           
  Branches      2071      2078    +7     
=========================================
  Hits          7421      7421           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1509b0...e816777. Read the comment docs.

@afc163 afc163 merged commit 87dba05 into ant-design:master Oct 20, 2020
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

Successfully merging this pull request may close these issues.

RangePicker 限制选择范围存在异常情况
3 participants