react-datepicker
react-datepicker copied to clipboard
Year dropdown is not working
Describe the bug The Year dropdown is not working (the datepicker doesn't provide an options of the year) and users can't select a year
To Reproduce
- Go to the official site https://reactdatepicker.com/#example-year-dropdown
- Try to select a year
- User sees the error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Additional context Example of usage is here
import React from "react";
import DatePicker, { registerLocale } from "react-datepicker";
import de from "date-fns/locale/de";
import Input from "../../input";
registerLocale("de", de);
const DatePickerView = (props) => (
<DatePicker
{ ...props }
locale="de"
yearDropdownItemNumber={15}
customInput={<Input />}
scrollableYearDropdown
showYearDropdown
/>
);
package.json
"react-datepicker": "^2.9.6",
"date-fns": "^2.6.0"
To add on @EricBrovko issue, the full message on the website is
react-dom.production.min.js:4260 Error: Minified React error #290; visit https://reactjs.org/docs/error-decoder.html?invariant=290&args[]=options for the full message or use the non-minified dev environment for full errors and additional helpful warnings
When I try to replicate this on my own project, the page just hangs indefinitely.
It happens on all dropdown AFAIK.
I have the same problem too.
+1
I downgraded to version 1.8.0 and things are fine again. But of course, if you need features of 2.x.x this will not work.
Also got the problem.
+1 we can't downgrade on our app, is ther a solution other than this?
This should be fixed with #2132 merged. We will release a new version shortly.
Have just updated react-datepicker in my project and still see this issue.
index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of a which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
This should be reopened, the issue is still happening in version 3.6.0
Is there any possibility that the issue might be reopened?
I'm still seeing Warning: findDOMNode is deprecated in StrictMode
using 3.8.0
Chiming in to say, this issue is happening to me too. I’m using 4.1.1.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Installed 4.7.0 and still sees the warning about findDOMNode is deprecated for both month and year dropdown.
I've seen the same issue for month and year dropdown
Same here
Also here - it seems to work, but I get the error message in the console.
Wondering if there's any traction on this. We're experiencing the same problem on our side but for iOS Safari.
I have the same problem, I changed the DATEPICKER version but it doesn't work
Hello,
Can you help me find a solution
This goes on.
Is this problem still occurring today? The sample seemed to work fine in the current version (v6.5.0). https://reactdatepicker.com/#example-year-dropdown
( cc. @martijnrusschen )