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

fix for crash that may occur on different timezones

Open niktechnopro opened this issue 3 years ago • 1 comments

we have noticed that react-datepicker may crash with message: "cannot read properties of undefined offsetTop". The following fix solves that issue. The crash occurs when we set local timezone (on local machine) to the west from timezone passed to react-datepicker.

niktechnopro avatar Jul 25 '22 17:07 niktechnopro

Codecov Report

Merging #3702 (269f8ca) into master (1d84d31) will increase coverage by 0.00%. The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #3702   +/-   ##
=======================================
  Coverage   93.34%   93.34%           
=======================================
  Files          20       20           
  Lines        1352     1353    +1     
  Branches      377      378    +1     
=======================================
+ Hits         1262     1263    +1     
+ Misses         27       26    -1     
- Partials       63       64    +1     
Impacted Files Coverage Δ
src/time.jsx 90.00% <0.00%> (-1.53%) :arrow_down:
src/year.jsx 94.23% <0.00%> (+1.92%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 24 '22 07:08 codecov[bot]