diff --git a/packages/svelte/src/internal/client/dom/blocks/if.js b/packages/svelte/src/internal/client/dom/blocks/if.js index 0ace929c0c..85ac996af1 100644 --- a/packages/svelte/src/internal/client/dom/blocks/if.js +++ b/packages/svelte/src/internal/client/dom/blocks/if.js @@ -33,7 +33,7 @@ function create_if_block() { * @param {() => boolean} condition_fn * @param {(anchor: Node) => void} consequent_fn * @param {null | ((anchor: Node) => void)} alternate_fn - * @param {boolean} [elseif] + * @param {boolean} [elseif] True if this is an `{:else if ...}` block rather than an `{#if ...}`, as that affects which transitions are considered 'local' * @returns {void} */ export function if_block(anchor_node, condition_fn, consequent_fn, alternate_fn, elseif = false) {