Open nick-youngblut opened 8 months ago
It appears that toHide
just needed to be flipped:
observeEvent(input$calendarId, {
cal_proxy_toggle("cal", input$calendarId, toHide = TRUE)
cal_proxy_toggle("cal", setdiff(1:3, input$calendarId), toHide = FALSE)
}, ignoreInit = TRUE, ignoreNULL = FALSE)
The example code for the cal_proxy_toggle function does not work as expected. Specifically, the checkbox selections do not just toggle the clicked boxes, but all calendars are affected (see attached). This seems to be due to:
in which
toHide = FALSE
andtoHide = TRUE
are supposed to toggle the "to show" and "to hide" calendars, respectively, in the list of calendars from the check box group. However, it appears that cal_proxy_toggle() just toggles the calendars, regardless of how thetoHide
parameter is set.sessionInfo