mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-08-21 05:11:20 +02:00
fix issue where collapsible would toggle unnecessarily
This commit is contained in:
@@ -113,7 +113,7 @@ export function TodoApp(el) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
el.querySelectorAll('.app-collapsible').forEach((el) =>
|
el.querySelectorAll('.app-collapsible').forEach((el) =>
|
||||||
el.dispatchEvent(new CustomEvent('collapse')),
|
el.dispatchEvent(new CustomEvent('collapse', { detail: false })),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user