Skip to content

Commit

Permalink
fix(field-group): enable invalid slot when invalid prop is true (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
WANZARGEN authored Sep 29, 2022
1 parent 6e455d0 commit ec1e801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputs/forms/field-group/PFieldGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<slot name="help">{{ helpText }}</slot>
</small>
<slot name="default" v-bind="$props" />
<div v-if="invalidText" class="invalid-feedback" :style="{display: invalid? 'block':'none'}">
<div v-show="invalid" class="invalid-feedback">
<slot name="invalid">
{{ invalidText }}
</slot>
Expand Down

0 comments on commit ec1e801

Please sign in to comment.