-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
with dash==1.12.0
(haven't tested old versions) and persistence_type='session'
:
setting a dcc.dropdown
's value
prop programatically, will update the GUI and callbacks alright, but the resulting persistence storage value (browser dev console) behaves very buggy.
some observations:
- When setting the value for the first time (no persisted value yet), it would not appear in the storage list at all.
- (re)setting it manually in the GUI comes up with a scrambled list containing both the manually set value (
T
) and the programatically set value (null
):["T",null]
- the issue is only to be resolved when refreshing the page, deleting the storage entry is not sufficient
- (re)setting it manually in the GUI comes up with a scrambled list containing both the manually set value (
- When having set the value in the GUI first, and then repeating the process, the value disappears with the same result
- the persistence entry will keep the two items list until page refresh, even when clearing the dropdown:
[null,null]
- the programatically set values are not recalled upon page refresh
- this goes for both
multi=True
andFalse
Expected behaviour:
There should only be one item in the list at all times: [["T"]]
or [[null]]
I can run more tests if required.
rodelrod and pwan2991
Metadata
Metadata
Assignees
Labels
No labels