diff --git a/src/runtime/slot/index.ts b/src/runtime/slot/index.ts index b2036c5cb6..37e526083b 100644 --- a/src/runtime/slot/index.ts +++ b/src/runtime/slot/index.ts @@ -13,7 +13,7 @@ function create_root_slot_fn(elements) { d: function destroy(detaching) { if (detaching) { - elements.forEach(element => detach(element)); + elements.forEach(detach); } },