react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Year dropdown is not working

Open EricBrovko opened this issue 5 years ago • 16 comments

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

  1. Go to the official site https://reactdatepicker.com/#example-year-dropdown
  2. Try to select a year
  3. User sees the error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screen Shot 2019-10-29 at 7 18 38 PM Screen Shot 2019-10-29 at 7 19 10 PM

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"

EricBrovko avatar Oct 29 '19 17:10 EricBrovko

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.

Kerry-G avatar Nov 01 '19 21:11 Kerry-G

I have the same problem too.

oboro36 avatar Dec 02 '19 01:12 oboro36

+1

quantumwebco avatar Dec 25 '19 17:12 quantumwebco

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.

Hugo-Meiring avatar Feb 12 '20 11:02 Hugo-Meiring

Also got the problem.

qenibas avatar Feb 12 '20 13:02 qenibas

+1 we can't downgrade on our app, is ther a solution other than this?

hermance avatar Feb 17 '20 14:02 hermance

This should be fixed with #2132 merged. We will release a new version shortly.

martijnrusschen avatar May 06 '20 11:05 martijnrusschen

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.

JSiscar avatar Oct 20 '20 08:10 JSiscar

This should be reopened, the issue is still happening in version 3.6.0

thurrell-atixlabs avatar Mar 12 '21 16:03 thurrell-atixlabs

Is there any possibility that the issue might be reopened?

rbalukja15 avatar Mar 31 '21 08:03 rbalukja15

I'm still seeing Warning: findDOMNode is deprecated in StrictMode using 3.8.0

binomialstew avatar Apr 29 '21 13:04 binomialstew

Chiming in to say, this issue is happening to me too. I’m using 4.1.1.

samhdee avatar Aug 09 '21 12:08 samhdee

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.

stale[bot] avatar Mar 02 '22 11:03 stale[bot]

Installed 4.7.0 and still sees the warning about findDOMNode is deprecated for both month and year dropdown.

michaelcais avatar Mar 23 '22 21:03 michaelcais

I've seen the same issue for month and year dropdown

bonniesimon avatar Jul 22 '22 10:07 bonniesimon

Same here

zzzej avatar Sep 22 '22 14:09 zzzej

Also here - it seems to work, but I get the error message in the console.

javlund avatar Sep 26 '22 11:09 javlund

Wondering if there's any traction on this. We're experiencing the same problem on our side but for iOS Safari.

linusgsanz avatar Nov 22 '22 21:11 linusgsanz

I have the same problem, I changed the DATEPICKER version but it doesn't work

image

nassihmahmoud avatar May 17 '23 16:05 nassihmahmoud

Hello,

Can you help me find a solution

nassihmahmoud avatar Jun 07 '23 12:06 nassihmahmoud

This goes on.

hypo-thesis avatar Jun 30 '23 18:06 hypo-thesis

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

yuki0410-dev avatar Mar 22 '24 09:03 yuki0410-dev

( cc. @martijnrusschen )

yuki0410-dev avatar Mar 23 '24 05:03 yuki0410-dev