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

Bug: app$layout() says it allows a collection, but it does not work #257

Open
daattali opened this issue Jun 1, 2021 · 0 comments
Open

Comments

@daattali
Copy link
Contributor

daattali commented Jun 1, 2021

From the documentation:

value should be either a collection of Dash components ...

And when looking at the code, I do see that it allows a collection here

However, when I try the following code, the app runs but doesn't render the UI:

app <- Dash$new()
app$layout(list(htmlDiv("foo"), htmlDiv("bar")))
app$run_server()

There is an error in the javascript console:

Error: The children property of a component is a list of lists, instead of just a list. Check the component that has the following contents, and remove one of the levels of nesting

This may be a bug with a different part of the stack rather than the R package

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

1 participant