Skip to content

Commit ba13c3d

Browse files
authored
fix: revise inert transition logic (#10159)
1 parent ab13356 commit ba13c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,11 @@ export function mark_subtree_inert(signal, inert, visited_blocks = new Set()) {
10341034
mark_subtree_inert(condition_effect, inert);
10351035
}
10361036
const consequent_effect = block.ce;
1037-
if (consequent_effect !== null) {
1037+
if (consequent_effect !== null && block.v) {
10381038
mark_subtree_inert(consequent_effect, inert, visited_blocks);
10391039
}
10401040
const alternate_effect = block.ae;
1041-
if (alternate_effect !== null) {
1041+
if (alternate_effect !== null && !block.v) {
10421042
mark_subtree_inert(alternate_effect, inert, visited_blocks);
10431043
}
10441044
} else if (type === EACH_BLOCK) {

0 commit comments

Comments
 (0)