nhn / toast-ui.vue-calendar

Toast UI Calendar for Vue
MIT License
195 stars 54 forks source link

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

Open vytya opened 5 years ago

vytya commented 5 years ago

Version

1.1.1

Test Environment

Windows 10

Current Behavior

Copied from https://github.com/nhn/toast-ui.vue-calendar/issues/11

  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

I tested little bit and seems VUE version have event after that everything is rebuilded and all calendars appears again.

image

createSchedules toggleSchedules render After this calendar events are hide. If I will do anything - clicked on any button, try to create new event, etc, will action 'createSchedules' event and whole calendar data will rebuilds, not paying attention on what calendars are hidden.

jungeun-cho commented 5 years ago

@vytya The Calendar does not store data about toggles. Refresh the schedule visibility (when updating, creating, or deleting a schedule).

In the example file, refreshScheduleVisibility() is called when you create a new schedule, update an existing schedule, or delete an existing schedule.