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
My program is changing the background color of an element based on the color selected by the picker. I keep them in sync by listening to the "change" event of the picker.
Right now the "change" event isn't fired after loading in the saved value from localStorage. It would be nice to do that so that I don't have to manually fetch the initial value after loading and duplicate the code from the "change" listener.
The text was updated successfully, but these errors were encountered:
Just to be clear, are you saying that once you click on the palette entry from localStorage that it isn't firing change? Or that you would like it to remember the most recently selected color when initializing if the localStorageKey option is set?
If I am still misunderstanding, can you fork this jsfiddle and show a small example of what you are experiencing? http://jsfiddle.net/kHTp5/
My program is changing the background color of an element based on the color selected by the picker. I keep them in sync by listening to the "change" event of the picker.
Right now the "change" event isn't fired after loading in the saved value from localStorage. It would be nice to do that so that I don't have to manually fetch the initial value after loading and duplicate the code from the "change" listener.
The text was updated successfully, but these errors were encountered: