We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab8448 commit 18d2b45Copy full SHA for 18d2b45
src/components/SvgIcon.vue
@@ -24,8 +24,8 @@ watchEffect(() => {
24
ref="actualEl"
25
class="SvgIcon"
26
:name="name"
27
- :viewBox="svgEl.getAttributeNS(null, 'viewBox') || undefined"
28
- :fill="svgEl.getAttribute('fill') || undefined"
+ :viewBox="svgEl.getAttribute('viewBox') ?? undefined"
+ :fill="svgEl.getAttribute('fill') ?? undefined"
29
></svg>
30
</template>
31
<style>
0 commit comments