Comments (2)
I think you are right! and I think this is a duplicate issue of #17
We've had a lot of discussion there, but I think the best way to do this moving forward is to provide a prop that allows the parent component to set the visible month on opening. If we allow that to be a moment object, it'd be very easy to do as you describe:
const date = moment().add(70, 'days');
<SingleDatePicker
focused
date={date}
initialVisibleMonth={date}
/>
I'm going to close this issue as a duplicate, but feel free to hop on the conversation over there!
from react-dates.
Sorry, I didn't notice that there was already an issue opened! I will follow there, thanks for your response!
from react-dates.
Related Issues (20)
- How to disable the preselected dates HOT 3
- Installation command results in error HOT 2
- Focus jumps to End Date before user is finished typing Start Date
- Cannot Use verticalScrollable DayPickerRangeControllerWrapper renders Empty HOT 1
- problem SingleDatePickerInput
- Overlap behavior when date pickers are vertically stacked
- DayPickerRangeController does not change visible month when startDate or endDate update from state value HOT 4
- Question: Is there a predefined way to change the months' language? HOT 1
- Accessibility issue with shortcut panel close button
- click date input randomly triggers outside click
- Unable to test with DateRangePicker HOT 10
- Three interesting questions about border-radius in cells, years and holidays HOT 1
- isOutsideRange property ends up nullifying invalid dates entirely HOT 5
- manually force refresh/render of blockedday
- problem with react HOT 1
- Change the width of calender in daterangepicker
- Allowing past dates is messing with dates selection at DayPickerRangeController component HOT 5
- I can't change React-Dates Language! HOT 6
- SingleDatePicker - Cannot open dialog from question mark button using Enter key.
- when it come to support compatibilty with react 18 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-dates.