Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React + Vite styles broken, multi-events not displayed on all days #7238

Closed
1 task done
joao-azevedo-toptal opened this issue Mar 8, 2023 · 6 comments
Closed
1 task done

Comments

@joao-azevedo-toptal
Copy link

joao-azevedo-toptal commented Mar 8, 2023

Reduced Test Case

https://stackblitz.com/edit/vitejs-vite-9ygsyj?file=src%2FApp.tsx&terminal=dev

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

React

Bug Description

When using Vite with React the styles for the calendar are not working properly, causing issues like the events not taking all the days they should.

@acerix acerix changed the title React + Vite css doesn't seem to be working properly React + Vite styles broken, multi-events not displayed on all days Mar 10, 2023
@arshaw
Copy link
Member

arshaw commented Mar 10, 2023

@joao-azevedo-toptal and @acerix , can you be more specific about exactly how its not rendering correctly?

@acerix
Copy link
Member

acerix commented Mar 11, 2023

For example, "Conference" should be 2 days but only shows the first day. There is also some padding missing in the day cells.

screen

@arshaw arshaw added this to the upcoming-release milestone Mar 13, 2023
@joao-azevedo-toptal
Copy link
Author

Doesn't seem to be related to vite, I'm having the same issue with a create react app project
https://stackblitz.com/edit/node-9de2zk?file=src%2FApp.js

@arshaw
Copy link
Member

arshaw commented Mar 20, 2023

@joao-azevedo-toptal , the staged fix will almost definitely fix the issue you describe as well.

@arshaw
Copy link
Member

arshaw commented Mar 21, 2023

@arshaw arshaw closed this as completed Mar 21, 2023
@c0d3m3nt0r
Copy link

Still seeing the same issue in v6.1.5, not sure what else to do, styles only load while in development mode, in my case, there are six style tags rendered when it all looks good, but for some reason when building for production environment, and then loading the same page, only two out of six style tags are being rendered, causing the layout of the calendar to break, the most visible part is the calendar items, which loose ---fc-small-font-size, to consider one single example of all the ones that are missing. I am using next.js, and building with babel, in a typescript project, react is also latest 18.x, and fullcalendar is 6.1.5 (latest as of today). I will keep looking into the code to see that might be missing, but, it is quite strange to have a development version behaving different than a prod one, at this point I have wasted a couple of days without a clue about what might be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants