Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior of dcc.Store object containing radar information on Firefox #43

Open
lcarlaw opened this issue Aug 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lcarlaw
Copy link
Collaborator

lcarlaw commented Aug 26, 2024

Submitted this as a reference. Unaware of a quick fix. This issue is only evident in the Firefox browser. Recommendation is to run in Chrome or Safari only.

If a user initially selects 1 radar and a site to transpose to, but then selects 2 or 3 radars (for which no transposing should be possible), the previous new_radar site is still stored in the radar_info dcc.Store object.

Function transpose_radar is always called first by a change to the radar quantity or transpose radar dropdown. If the radar quantity is > 1, radar_info['new_radar'] is set to a None string. This is fine across all browsers.

When the user goes to make new radar selections via the map, function transpose_radar is executed. In Safari and Chrome sessions, radar_info['new_radar'] is correctly returned as a None string. In Firefox, this value is the previous new_radar selection, indicating that the radar_info dictionary was likely never propagated to the dcc.Store object. A visual of the differences between two browsers is below, where the first set is from Chrome, and the second on Firefox. Right after the "launch" line, a selection of 2 radars was made from the dropdown menu. The radar output is the value of new_radar at the time of the corresponding function.

error

@lcarlaw lcarlaw added the bug Something isn't working label Aug 26, 2024
Repository owner deleted a comment from mabhi02 Aug 26, 2024
Repository owner deleted a comment from CoZmoTheGod Aug 26, 2024
Repository owner deleted a comment from deverchettychandrashekar Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant