Skip to main content
Sign in
Snippets Groups Projects
Commit 1442cded authored by David Smadja's avatar David Smadja
Browse files

Fix effect not triggered in certain cases

parent af82e07d
No related branches found
No related tags found
1 merge request!329Permettre d'ouvrir / fermer tous les paramètres
......@@ -147,7 +147,7 @@
),
)
let openOtherParameters = $state(true)
let openAllParameters = $state(true)
let openAllParameters: boolean | null = $state(true)
let loadingAllParameters = $state(false)
</script>
......@@ -246,6 +246,7 @@
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-400 hover:text-le-gris-dispositif-dark"
onclick={async () => {
loadingAllParameters = true
openAllParameters = null
await new Promise((resolve) => setTimeout(resolve, 500))
openAllParameters = true
loadingAllParameters = false
......@@ -262,6 +263,7 @@
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-400 hover:text-le-gris-dispositif-dark"
onclick={async () => {
loadingAllParameters = true
openAllParameters = null
await new Promise((resolve) => setTimeout(resolve, 500))
openAllParameters = false
loadingAllParameters = false
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment