Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Change in class binding breaks rendering #208

Open
gmw-web opened this issue Oct 17, 2019 · 4 comments
Open

Change in class binding breaks rendering #208

gmw-web opened this issue Oct 17, 2019 · 4 comments

Comments

@gmw-web
Copy link

gmw-web commented Oct 17, 2019

When a calendar has a class binding with for example :class="{'disabled': !isActive}", and the isActive property changes, the changing class causes the rendering of the calendar to break.

See this codepen for a demo of the issue(click the button in the top left):
https://codesandbox.io/embed/fullcalendar-vue-1lktx

@BrockReece
Copy link
Collaborator

Hmm, that is frustrating... I will try and have a look this afternoon.

@BrockReece
Copy link
Collaborator

I'm guessing this is a conflict between Vue and Fullcalendar's jQuery dom manipulation.
Could you apply the class to a parent element?

@gmw-web
Copy link
Author

gmw-web commented Oct 21, 2019

Luckily, I can (and I did) use that workaround. I posted because I thought you (and others) should know. Hopefully it's fixable. Thanks for looking into the issue!

@BrockReece
Copy link
Collaborator

Ah ok, glad that solved it. Yeah I guess we could wrap the calendar target element with a parent to prevent this. Not sure whether it would break other's implementations though. One to think about going forward I think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants