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
Currently if a user clicks on a dot in any of the clickable plots, the app navigates to the matrix page. However, if the user then uses the back-button in the browser, the app redirects the user to the matrix page again.
The bug seems to be caused by the 'ClickData' value not being cleared upon page navigation and the redirect callback gets triggered every time the plot loads.
Possible solutions:
Remember the previous state of the clickdata and only navigate if the new click is different from the previous one. This will introduce a bug by preventing navigation if a user clicks a dot -> hits the back button -> clicks the same dot again.
Clear the ClickData value upon page navigation. If ClickData can be used as an Output in a callback, it could use the dcc.Location as input and be cleared every time the url changes.
Check the Dash community forums if anyone has had the same problem
The text was updated successfully, but these errors were encountered:
The source seems to be deep inside the dash framework and dcc.Location element (and how it interacts with the browser), so it is currently not worth the effort of fixing it.
Currently if a user clicks on a dot in any of the clickable plots, the app navigates to the matrix page. However, if the user then uses the back-button in the browser, the app redirects the user to the matrix page again.
The bug seems to be caused by the 'ClickData' value not being cleared upon page navigation and the redirect callback gets triggered every time the plot loads.
Possible solutions:
The text was updated successfully, but these errors were encountered: