Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

javascript - Disable antd DatePicker future pages

I`m building a website with React and antd library, I have a datepicker like this one:

<RangePicker
          format={'DD/MM/YYYY'}
          onChange={onDatePick}
          onOpenChange={onOpenChange}
          onCalendarChange={val => setDates(val)}
          disabledDate={disabledDate}
          value={hackValue || value}
        />

I would like to disable ability for user to scroll calendar past present month and before January 2016. Right now I have those dates disabled so user cannot choose them but can steel see dated past or before those dates. I mean using this arrows: Screenshot with mentioned arrows

question from:https://stackoverflow.com/questions/65876994/disable-antd-datepicker-future-pages

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...