Update text input vue component so that it only shows the validation icon on mount when the form is not a form that is inset into a page

This commit is contained in:
leigh-mil
2019-08-16 09:24:40 -04:00
parent 75ab8436b0
commit 666f237002
4 changed files with 21 additions and 8 deletions

View File

@@ -17,7 +17,8 @@
optional=True,
showLabel=True,
watch=False,
show_validation=True) -%}
show_validation=True,
inset_form=False) -%}
<textinput
v-cloak
@@ -28,6 +29,7 @@
{% if initial_value or field.data is not none %}initial-value='{{ initial_value or field.data }}'{% endif %}
{% if field.errors %}v-bind:initial-errors='{{ field.errors | list }}'{% endif %}
v-bind:optional={{ optional|lower }}
v-bind:inset-form={{ inset_form|lower }}
key='{{ field.name }}'
:watch='{{ watch | string | lower }}'
inline-template>