I am seeing some weird behavior in conditionalPanel and I am not sure why. It happens when I assign two sidebar input IDs for conditionalPanel, one for menuItem, one for tabPanel, then conditionalPanel starts to selectively ignoring the conditions I set in some cases.
I am trying to have the default selection of comparison date picker change based on the menuItems and tabs selected. In all of the cases, there should only be one comparison date picker, based on the conditions I set for conditionalPanel. However, in menu3, comparison date picker for menu2 also appears (depend on which tab is last selected in menu2, the extra date picker will be either last year or last week); in menu1, if tab2 in menu2 is selected before clicking on menu1, an additional comparison date picker will also be shown.
Hi,
I am seeing some weird behavior in conditionalPanel and I am not sure why. It happens when I assign two sidebar input IDs for conditionalPanel, one for menuItem, one for tabPanel, then conditionalPanel starts to selectively ignoring the conditions I set in some cases.
Here is the link for the example dashboard: link
I am trying to have the default selection of comparison date picker change based on the menuItems and tabs selected. In all of the cases, there should only be one comparison date picker, based on the conditions I set for conditionalPanel. However, in menu3, comparison date picker for menu2 also appears (depend on which tab is last selected in menu2, the extra date picker will be either last year or last week); in menu1, if tab2 in menu2 is selected before clicking on menu1, an additional comparison date picker will also be shown.
And here is the code: app.R