wojtekmaj / react-calendar

Ultimate calendar for your React app.
https://projects.wojtekmaj.pl/react-calendar
MIT License
3.46k stars 497 forks source link

calendar elements render issue on Safari #905

Closed igor-ukhin closed 8 months ago

igor-ukhin commented 8 months ago

Before you start - checklist

Description

Hi! I am work with react-calendar (4.6.0) and have issue with rendered elements (decades, years, months). When I open the calendar in a modal window everything looks good (I have the starting display set to decade). But as soon as I click on any calendar button (navigation arrows, tile), the elements disappear from the screen and the calendar stops working. But if you disable any style in the code inspector (even one not associated with the calendar component), everything starts working. Reproduced in Safari only.

https://github.com/wojtekmaj/react-calendar/assets/91734202/16761d7e-5f88-4af2-8c71-a564a726b774

Elements remain in the DOM-tree, but are not displayed on the screen.

Steps to reproduce

  1. Open modal with calendar
  2. Click on any clickable element

Expected behavior

All calendar elements is showing after clicking

Actual behavior

All calendar elements is hiding after clicking

Additional information

No response

Environment

wojtekmaj commented 8 months ago

Hey! This doesn't look like something directly related to React-Calendar, but I may have a look if you provide a reproducible example, preferably on CodeSandbox.

igor-ukhin commented 8 months ago

Thank you for your prompt response. The problem really wasn't with the calendar, but with the styles of a completely different component, which confused me a little. I solved the problem, but I still don’t understand how these things are interconnected