Skip to content

Commit

Permalink
fix(ControlInput): replace root element
Browse files Browse the repository at this point in the history
To avoid Vue complaining (rightly so) about fallthrough attributes to fragments, the component now renders a div as a root
  • Loading branch information
Readpato committed Dec 13, 2023
1 parent 3d97dc3 commit 9bff2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ControlInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function onChange(value: string) {
</script>

<template>
<template v-if="control.visible">
<div v-if="control.visible">
<ColorControl
v-if="control.type === 'color'"
:label="control.label"
Expand Down Expand Up @@ -81,5 +81,5 @@ function onChange(value: string) {
:control="control"
@change="onChange"
/>
</template>
</div>
</template>

0 comments on commit 9bff2a9

Please sign in to comment.