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
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
I've been trying out the very recently merged Tabs functionality from pull #213 - thanks for the great new feature! I've been really enjoying the library as a whole (and making very heavy use of it).
Obviously this is a fairly unimportant issue, as why would you ever have just a single tab. However, I thought I'd report it anyway, as my development approach for the project I was applying the tabs feature to was to add in the tabs one by one, and I hit this error straightaway.
Essentially, if you only have a single tab, then you get an 'error loading layout' reported in your browser, and no errors in the logs at all. In Chrome's console, you get this error:
bundle.js?v=0.13.0:2 TypeError: Cannot read property 'props' of undefined
at t.value (bundle.js?v=0.26.0:27)
at p._renderValidatedComponentWithoutOwnerOrContext ([email protected]?v=0.13.0:13)
at p._renderValidatedComponent ([email protected]?v=0.13.0:13)
at performInitialMount ([email protected]?v=0.13.0:13)
at p.mountComponent ([email protected]?v=0.13.0:13)
at Object.mountComponent ([email protected]?v=0.13.0:14)
at performInitialMount ([email protected]?v=0.13.0:13)
at p.mountComponent ([email protected]?v=0.13.0:13)
at Object.mountComponent ([email protected]?v=0.13.0:14)
at performInitialMount ([email protected]?v=0.13.0:13)
I'm using Python 3.7.0 and my Dash setup is as follows:
If you put the commented code back in (i.e. two tabs), then everything is fine. Curiously, you can also fix the issue by making sure the single Tab has the value argument defined like so:
dcc.Tab(label='Tab one', value='tab-1', children=[
html.Div([
html.H1("This is the content in tab 1"),
])
]),
Cheers,
Rob
The text was updated successfully, but these errors were encountered:
Hi All,
I've been trying out the very recently merged Tabs functionality from pull #213 - thanks for the great new feature! I've been really enjoying the library as a whole (and making very heavy use of it).
Obviously this is a fairly unimportant issue, as why would you ever have just a single tab. However, I thought I'd report it anyway, as my development approach for the project I was applying the tabs feature to was to add in the tabs one by one, and I hit this error straightaway.
Essentially, if you only have a single tab, then you get an 'error loading layout' reported in your browser, and no errors in the logs at all. In Chrome's console, you get this error:
I'm using Python 3.7.0 and my Dash setup is as follows:
And a reproducer of the issue is:
If you put the commented code back in (i.e. two tabs), then everything is fine. Curiously, you can also fix the issue by making sure the single Tab has the
value
argument defined like so:Cheers,
Rob
The text was updated successfully, but these errors were encountered: