mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
chore(local-storage): reset value on clear [ci skip]
This commit is contained in:
parent
881f69d617
commit
f6833c11f2
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
* @type {() => void}
|
||||
*/
|
||||
export function clearItem() {
|
||||
value = "";
|
||||
localStorage.removeItem(key);
|
||||
}
|
||||
|
||||
|
@ -28,6 +29,7 @@
|
|||
* @type {() => void}
|
||||
*/
|
||||
export function clearAll() {
|
||||
value = "";
|
||||
localStorage.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue