Skip to content

Commit

Permalink
fix(web): url state of nested accordions (#7928)
Browse files Browse the repository at this point in the history
* fix url state of nested accordions

* Use existing method to update state

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
  • Loading branch information
danieldietzler and michelheusschen committed Mar 13, 2024
1 parent 2b1def4 commit 054df27
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { slide } from 'svelte/transition';
import { getAccordionState } from './setting-accordion-state.svelte';
import { onDestroy } from 'svelte';
const accordionState = getAccordionState();
Expand All @@ -19,6 +20,10 @@
$accordionState = $accordionState;
}
};
onDestroy(() => {
setIsOpen(false);
});
</script>

<div class="border-b-[1px] border-gray-200 py-4 dark:border-gray-700">
Expand Down

0 comments on commit 054df27

Please sign in to comment.