Year dropdown is not working
See original GitHub issueDescribe 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"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:18 (1 by maintainers)
Top Results From Across the Web
Jquery Ui Datepicker month/year dropdown is not working in ...
I give a solution for jquery daterangepicker nested in bootstrap modal (problem: selectors month/years not appearing on FF browser).
Read more >Jquery Ui Datepicker month/year dropdown is not ... - YouTube
HTML : Jquery Ui Datepicker month/ year dropdown is not working in popup in latest firefox [ Gift : Animated Search Engine ...
Read more >#8088 (Datepicker Month/Year Dropdowns Not Working In ...
In this case not working indicates that clicking on the dropdown has no affect in setting the value and the dropdown simple disappears....
Read more >DatePicker year and month dropdown is not showing up
Hi, I have MDB pro and after upgrading to 4.4.1 date picker is not showing year and month drop down. It was fine...
Read more >Jquery Ui Datepicker month/year dropdown is ... - Therichpost
Jquery Ui Datepicker month/year dropdown is not working in boostrap modal popup in firefox ... Here you can check the working and tested...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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