logic-block-namespace
Dominic Gannaway 1 day ago
parent 728f033f7e
commit 39ffa63f4c

@ -2,4 +2,4 @@
'svelte': patch 'svelte': patch
--- ---
fix: ensure logic blocks keep consitent namespacing fix: ensure logic blocks keep consistent namespacing

@ -350,7 +350,10 @@ export function infer_namespace(namespace, parent, nodes) {
// If the parent block is a control block, we want to keep the namespace if it's not html // If the parent block is a control block, we want to keep the namespace if it's not html
if ( if (
namespace !== 'html' && namespace !== 'html' &&
(parent.type === 'EachBlock' || parent.type === 'AwaitBlock' || parent.type === 'KeyBlock') (parent.type === 'IfBlock' ||
parent.type === 'EachBlock' ||
parent.type === 'AwaitBlock' ||
parent.type === 'KeyBlock')
) { ) {
return namespace; return namespace;
} }

Loading…
Cancel
Save