Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Hidden schedules hided with toggleschedules re-appear when calendar re-renders #11

Open
Alleyfield opened this issue Jan 30, 2019 · 3 comments
Assignees
Labels
Bug Something isn't working

Comments

@Alleyfield
Copy link

Version

1.0.0

Test Environment

Chrome Version 72.0.3626.77 (Official Build) beta (64-bit)

Current Behavior

  1. create a toastUI calendar with calendars A and B
  2. toggle visibility of calendar A to hide it
    this.$refs.tuiCalendar.invoke('toggleschedules', calendarA, true);
  3. Make the Tui Calendar to re-render: e.g. move a schedule belonging to calendar B
    ==> Calendar re-renders and previously hidden calendar A schedules can be seen again

Expected Behavior

After hiding calendars they should remain hidden even when the calendar re-renders

@sohee-lee7 sohee-lee7 added the Bug Something isn't working label Jan 31, 2019
@dongsik-yoo dongsik-yoo self-assigned this Jan 31, 2019
@dongsik-yoo
Copy link
Contributor

I'll check this out.

@Alleyfield
Copy link
Author

Alleyfield commented Feb 18, 2019

Thank you @dongsik-yoo, let me know if you'd need any help with it or further information.
It should be possible to replicate by making a change in provided schedule data which will cause a re-render that does not take previously set values of visibility into account.

And to be more precise, in my case "moving a schedule belonging to calendar B" makes an API call and the provided schedule array via prop "schedules" does update (and this only, not calendars)

@vytya
Copy link

vytya commented Sep 24, 2019

Seems I have similar issue.
And topicstarter didn't set that VUE version mentioned here (but this string are tells us
this.$refs.tuiCalendar.invoke('toggleschedules', calendarA, true);
)

I think better to create issue in vue repository.
Created there #41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants