I have two tabs. I have an input (type number) on each one. I have no Callbacks.
When I put a number in one of the inputs it carries over to the other input. A heavily simplified piece of the code is below:
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)
Running this one should see that inputting a number into input (id = "input_1) on tab thing_1 will also fill in input (id = "input_2) on tab thing_2.
Due to my lack of knowledge on the inner workings of Dash I’m not quite sure what I need to do to fix this.
It would be great if someone could offer some assistance.
Many Thanks