1
0
mirror of synced 2025-01-31 23:01:39 +03:00

Adds transition element around formulate-errors-list

This commit is contained in:
Justin Schroeder 2018-02-27 10:18:31 -05:00
parent b9a94dc8fa
commit abcc8fffa3
2 changed files with 15 additions and 11 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -88,18 +88,22 @@
v-text="`Unsupported field type: “${type}”.`"
/>
</div>
<transition-group
tag="ul"
<transition
name="formulate-errors"
class="formulate-errors"
v-if="shouldShowErrors && localAndValidationErrors.length"
>
<li
v-for="error in localAndValidationErrors"
v-text="error"
:key="error"
/>
</transition-group>
<transition-group
tag="ul"
name="formulate-error-list"
class="formulate-errors"
v-if="shouldShowErrors && localAndValidationErrors.length"
>
<li
v-for="error in localAndValidationErrors"
v-text="error"
:key="error"
/>
</transition-group>
</transition>
</div>
</template>