fix: infer `svg` namespace correctly

pull/10027/head
navorite 3 years ago
parent 6307a3322c
commit ba8de991f5

@ -222,7 +222,7 @@ export function infer_namespace(namespace, parent, nodes, path) {
only_svg = false;
break;
}
} else if (node.type !== 'Text' || node.data.trim() !== '') {
} else if (node.type === 'Text' && node.data.trim() !== '') {
only_svg = false;
}
}

Loading…
Cancel
Save