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
I am using selectize for a report and I save off the input entries to local storage so that when users return to the page their query criteria is still populated. However, I am not sure how to load the selection from onInitialize.
You can see that when onChange fires, I save the selections to storage. Then onInitialize should pull those values back from storage and assign, if they exist. However, this doesn't seem to be working and I'm not sure why. I've seen others reference setValue but typically out of the context of the initializer.
FYI: My page actually has multiple selectize inputs but I've stripped those out for clarity.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I am using selectize for a report and I save off the input entries to local storage so that when users return to the page their query criteria is still populated. However, I am not sure how to load the selection from
onInitialize
.You can see that when
onChange
fires, I save the selections to storage. ThenonInitialize
should pull those values back from storage and assign, if they exist. However, this doesn't seem to be working and I'm not sure why. I've seen others referencesetValue
but typically out of the context of the initializer.FYI: My page actually has multiple selectize inputs but I've stripped those out for clarity.
Beta Was this translation helpful? Give feedback.
All reactions