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

Accordions with anything other than accordionItem inside of them are broken #71

Open
daattali opened this issue Feb 17, 2020 · 1 comment

Comments

@daattali
Copy link

Prior to f50d8c8 the following code was fine:

shinydashboardPlus::accordion(div(id = "placeholder"))

(The usecase is that the accordion items were being added dynamically so it starts out empty with just a placeholder element)

Since that commit, accordions are broken.

Error in `*tmp*`[[1]] : subscript out of bounds

Looking at the code, it's because there are many assumptions being made about the internal structure of the object being passed to accordion().

I realize the documentation says that these parameters should be accordionItems() but I still wanted to bring this to your attention. Maybe there are others who also use accordions in a similar fashion and are also going to have errors when they update, and perhaps it's not too difficult to make it backwards compatible.

If you feel this doesn't need fixing, feel free to close the issue.

@DivadNojnarg
Copy link
Member

Hi @daattali : I will be back on shinydashboardPlus soon (after shinyMobile 0.5.0 release). I see the point, it deserves better attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants