clauderic / react-infinite-calendar

✨ Infinite scrolling date-picker built with React, with localization, range selection, themes, keyboard support, and more.

Home Page:http://clauderic.github.io/react-infinite-calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendar is jumping to the center of the screen on open

kahurangitama opened this issue · comments

commented

Hi!
First of all, thank you for such a great component!

I've experienced a problem.
I have a side panel which has nice slide CSS-animation.
However if I put this calendar into it this animation behaves very strange:

  1. it push all panel to the center of the screen.
  2. and move it back to the place where animation should stop.

I suppose it happen when plugin calculates absolute postitions.
Unfortunately can't share any code (project of my client), so it's just FYI.

commented

Use autoFocus={false}. Helped me.