When I select a tab from the dcc.Tabs, the page would automatically scroll to the top if I have given ids to the dcc.Graphs. If they don’t have ids, the page stays where it is. How can I avoid that? I want my graphs to have ids and prevent the scrolling.
I get this when I run the code provided in my question:
When I only remove the ids from the graphs, i.e. change the 5th line of the code to this: make_graph = lambda id: dcc.Graph(figure=fig)
I get this:
How can I prevent the automatic scrolling when selecting a Tab while still let the graphs have ids? If you would know what causes this in the first place, that would also be very appreciated
Hey @Ivaylo_Rusinov this seems to be related to the browser you are using. I can reproduce this using Firefox but not using Chrome or Edge. Not sure if there is something you might configure within dash or Firefox though.
Hi @AIMPED. Thank you for looking into this! Are you sure it works with Chrome? For some reason I get exactly the same behavior..
It might be a problem on my side, I don’t know how this would not be a common issue otherwise.