From cb4f1281d3bce597af801bc4402af8c2cd735de8 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Fri, 10 Aug 2018 13:36:53 -0400 Subject: [PATCH] bind aria-invalid correctly --- templates/components/text_input.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/components/text_input.html b/templates/components/text_input.html index 99d8be4d..9447f9b6 100644 --- a/templates/components/text_input.html +++ b/templates/components/text_input.html @@ -43,11 +43,11 @@ v-bind:mask='mask' v-bind:pipe='pipe' v-bind:keep-char-positions='keepCharPositions' + v-bind:aria-invalid='showError' id='{{ field.name }}' type='text' ref='input' - placeholder='{{ placeholder }}' - {% if field.errors %}aria-invalid='true'{% endif %}> + placeholder='{{ placeholder }}'> {% endif %}