I have created 9 tabs. The first tabs allows for the input of Data and the following 8 tabs each perform some sort of statistical test on them.
Initially just inserting graphs seemed to work fine. However after I started adding inputs and tables of Data I started getting an odd occurrences where even if I changed the tab it would continue to display the graph of the previous tab.
This does not extend to tabs that are blank. It is like the display graph id is returning the wrong id.
Has anyone experienced this and have they found a work around?
It does sound like it might be some kind of bug, but it’s hard to know without seeing a complete, reproducable example. Could someone create a complete but minimal reproducable for this?
I realises that it has been a long time since I posted this however I am having the same problem again and have stripped my code down to nothing (and the problem still persists).
import dash_html_components as html
import dash_core_components as dcc
import dash
app = dash.Dash()
app.scripts.config.serve_locally = True
app.layout = html.Div([
dcc.Tabs(
children = [
dcc.Tab(
children = [
dcc.Input(
id = "input_1",
type = "number",
min = 0,
),
],
label = "thing_1",
),
dcc.Tab(
children = [
dcc.Input(
id = "input_2",
type = "number",
min = 0,
),
],
label = "thing_2",
),
]
),
])
if __name__ == "__main__":
app.run_server(debug=True)
If one puts a number within the input box and then change tabs, the screen doesn’t change.
What seems to be happening is despite the fact they have nothing to do with each other the inputs are taking each others value.