Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dropdown): add namespace to sessionstorage
Whenever more than 1 dropdown is using remoteData, the sessionstorage is sharing the keys because of a missing namespace. Now, if different dropdowns use the same ids, but different values then the second dropdown will return the wrong names from the first dropdown. This PR adds the dropdowns id/namespace to the sessionstorage keys, so those are now unique to their respective dropdowns. Example Dropdown 1 has the following elements (key, value) 1, monday 2, tuesday 3, wednesday Dropdown 2 has the following elements (key, value) 1, january 2, february 3, march The second dropdown will get the Weeknames out of the sessionstorage instead of the monthnames, because the keys are the same.
- Loading branch information