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

FullCalendar can't display on a hiden TabView-> TabPanel #1151

Closed
voquanghoa opened this issue Apr 7, 2021 · 3 comments
Closed

FullCalendar can't display on a hiden TabView-> TabPanel #1151

voquanghoa opened this issue Apr 7, 2021 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@voquanghoa
Copy link

voquanghoa commented Apr 7, 2021

Hello,

It took me a while to discover why the calendar display error on my application.

Then I found that the error happens if I put a full-calendar component inside a TabPanel of TabView (except the first one)

Here is the link https://codesandbox.io/s/serene-cherry-mjorg?file=/src/FullCalendarDemo.vue

This sandbox I cloned from your one ( https://codesandbox.io/s/z7ltg ) and only change the template

<template>
    <div>
        <FullCalendar :events="events" :options="options" />
    </div>
</template>

to

<template>
  <TabView>
      <TabPanel header="Calendar OK">
        <FullCalendar :events="events" :options="options" />
      </TabPanel>
      <TabPanel header="Calendar Error">
        <FullCalendar :events="events" :options="options" />
      </TabPanel>
    </TabView>
</template>

And the error happens

image

Could you take a look at this?

Thank you

@voquanghoa voquanghoa changed the title FullCalendar can't display on a TabView FullCalendar can't display on a hiden TabView-> TabPanel Apr 7, 2021
@cagataycivici
Copy link
Member

What is your PrimeVue version?

@voquanghoa
Copy link
Author

Hello.

I used PrimeVue version 3.1.1 at the beginning and got the error. Then I upgraded it to the latest one 3.3.5, the issue still occurs.

The issue can be reproduced at the link https://codesandbox.io/s/serene-cherry-mjorg?file=/src/FullCalendarDemo.vue

The first calendar displays properly but the second one.

image

Thanks.

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working priority - medium labels May 10, 2021
@cagataycivici cagataycivici added this to the 3.5.0 milestone May 11, 2021
@cagataycivici
Copy link
Member

With 3.5.0, enable lazy rendering to resolve this;

#1268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants