You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert "a" in html.Div(html.Div(id="a")) # passes
assert "a" in html.Div([html.Div(id="a")]) #passes
assert "a" in html.Div([[html.Div(id="a")]]) # FAILS - this is the relevant case here
As with #2905 probably the easiest solution is to wrap the layout in html.Div in this case so that the check passes:
assert "a" in html.Div([html.Div([html.Div(id="a")])]) # passes
Note that while #2905 is very similar it looks like the proposed fix #2915 will not solve this case. Given these two very similar issues, maybe there's a better elsewhere that would fix both (and any other similar undiscovered issues) simultaneously?
The text was updated successfully, but these errors were encountered:
gvwilson
changed the title
[BUG] Layout as list of components does not work with Dash Pages page_container
Layout as list of components does not work with Dash Pages page_container
Aug 13, 2024
Describe your context
Describe the bug
#2795 enabled you to pass a list of components to
app.layout
. However, this does not work withpage_container
.The first request will give the following exception:
Subsequent page refreshes are ok because this check only occurs on the first request.
The problem is that the following check is failing:
dash/dash/dash.py
Line 2257 in bbd013c
The reason for that is as follows:
As with #2905 probably the easiest solution is to wrap the layout in
html.Div
in this case so that the check passes:Note that while #2905 is very similar it looks like the proposed fix #2915 will not solve this case. Given these two very similar issues, maybe there's a better elsewhere that would fix both (and any other similar undiscovered issues) simultaneously?
The text was updated successfully, but these errors were encountered: