Repository navigation
|
Coloris seem to remember the last color selected by the user on load, but how can you retrieve the data on load? There is no event for "onLoad" as far as I know, I'd appreciate your help on this, thank you. |
Answered by
mdbassit
Sep 22, 2024
Replies: 2 comments
|
Coloris doesn't have a state at all so it can't remember anything. All it does is render the color value that was already set in the input field it's attached to. |
0 replies
Answer selected by
Potato22
|
I see, I may have realized that I'm using a dev server that hotswaps the DOM instead of refreshing entirely which made it look like it remembers the last state. Apologies. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Coloris doesn't have a state at all so it can't remember anything. All it does is render the color value that was already set in the input field it's attached to.