Comments (1)
As a workaround, on input change, I check if the date is not matched with disabled days. It does only cover the disabled prop, not the max for example.
....
if (
isValid(date) &&
(props.disabled == null ||
!isMatch(
date,
Array.isArray(props.disabled)
? props.disabled
: [props.disabled]
))
) {
setSelected(date)
}
from react-day-picker.
Related Issues (20)
- Hi! I'm not opening new issue because I think it can be somehow related with this one 🙂 HOT 3
- Can't import the named export 'buildLocalizeFn' from non EcmaScript module (only default export is available)
- Accessibility issue in calendar picker in the latest version 8.10.0
- Empty inputField with useInput() is not behaving like unselect Date in DayPicker HOT 1
- Bug with label
- Calendar set's date to undefined when same date selected and this give inconsistent behavior! HOT 2
- Safari/iOS: hover background when unselecting a day HOT 4
- [Future Request] Enhancing changes to make React Day Picker responsive
- RootContext is missing pass-through types for each context it provides HOT 6
- toDate and fromDate are not working as expected HOT 4
- inactive elements in the focus order - accessibility issue
- Improve Custom Components docs
- Select Week ➔ Week picker ?
- Range should start new if one already selected HOT 9
- docs: not updating selected month during input change event HOT 7
- Style of Range bug - Wrong import in documentation HOT 2
- DayPicker doesnt work in ios chrome and safari on mobile.
- Improve focus capabilities
- Core Web Vitals : Unused Javascript is high when used with Next JS SSR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-day-picker.