Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit f6aaac7

Browse files
Merge pull request #260 from V-ed/patch-3
fix(ListGroup): offset not applied when toggling off and on quickly
2 parents b5c8b14 + f65b819 commit f6aaac7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/svelte-materialify/src/components/List/ListGroup.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
2222
function toggle() {
2323
active = !active;
24+
const tempOffSet = offset;
25+
offset += 0.0001;
26+
offset = tempOffSet;
2427
}
2528
2629
if (eager) {

0 commit comments

Comments
 (0)