Skip to content

Commit

Permalink
fix: input v2 labelling (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber authored Oct 9, 2024
1 parent 3cf95f6 commit 44a9241
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/InputCheckbox/PdapInputCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@input="onInput"
/>

<slot v-if="$slots.label" name="label" :for="id" />
<label v-if="$slots.label" :for="id"><slot name="label" /></label>
<label v-else-if="label" :for="id">{{ label }}</label>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputPassword/PdapInputPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</button>
</div>

<slot v-if="$slots.label" name="label" :for="id" />
<label v-if="$slots.label" :for="id"><slot name="label" /></label>
<label v-else-if="label" :for="id">{{ label }}</label>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputText/PdapInputText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@input="onInput"
/>

<slot v-if="$slots.label" name="label" :for="id" />
<label v-if="$slots.label" :for="id"><slot name="label" /></label>
<label v-else-if="label" :for="id">{{ label }}</label>
</div>
</template>
Expand Down

0 comments on commit 44a9241

Please # to comment.