question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when DatePicker.RangePicker set mode=['month', 'month'] , there disabledDate is wrong

See original GitHub issue

Version

3.1.3

Environment

react

Reproduction link

https://sharkwarn.github.io/#/

Steps to reproduce


  disabledDate=(value) => {
    return true
  }
....
  render() {
    return (
      <div>
          <RangePicker
            disabledDate={this.disabledDate}
            mode={ ['month', 'month']}
          />
      </div>
    )

What is expected?

disabled some Date

What is actually happening?

The disabledDate doesn’t work

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
hengkxcommented, Sep 21, 2018

+1

3reactions
couziccommented, Jun 6, 2018

I’m experiencing this issue, currently with antd 3.6.1. disabledDate still has no effect.

Is the fix supposed to have been applied already ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable date and time for antd DatePicker - Stack Overflow
When a user sets the startTime ; in your onStartTimeChange handler; set a ... For disabling dates, the disabledDate prop can be used....
Read more >
DatePicker - Ant Design - A UI Design Language
When RangePicker does not satisfied your requirements, try to implement similar ... Use the disabledDate property to limit the start and end dates....
Read more >
DatePicker - Ant Design
Use the disabledDate property to limit the start and end dates. ... When set mode to DatePicker/RangePicker, cannot select year or month anymore?...
Read more >
Angular Date Range Picker with Custom Range Presets
It's a common use case to have pre-defined ranges like "last month" or "this week" which can be selected to set the date...
Read more >
DatePicker - Element Plus
The disabled date is set by disabledDate , which is a function. ... You can choose week, month, year or multiple dates by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found