1
0
mirror of synced 2025-02-07 17:39:22 +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}”.`" v-text="`Unsupported field type: “${type}”.`"
/> />
</div> </div>
<transition-group <transition
tag="ul"
name="formulate-errors" name="formulate-errors"
class="formulate-errors"
v-if="shouldShowErrors && localAndValidationErrors.length"
> >
<li <transition-group
v-for="error in localAndValidationErrors" tag="ul"
v-text="error" name="formulate-error-list"
:key="error" class="formulate-errors"
/> v-if="shouldShowErrors && localAndValidationErrors.length"
</transition-group> >
<li
v-for="error in localAndValidationErrors"
v-text="error"
:key="error"
/>
</transition-group>
</transition>
</div> </div>
</template> </template>