Merge pull request #650 from dod-ccpo/valid-decimals

Form fixes
This commit is contained in:
George Drummond
2019-02-14 15:25:47 -05:00
committed by GitHub
3 changed files with 14 additions and 3 deletions

View File

@@ -55,7 +55,9 @@
v-on:input='onInput'
v-on:change='onChange'
v-bind:value='value'
{% if not disabled %}
id='{{ field.name }}'
{% endif %}
ref='input'
placeholder='{{ placeholder }}'>
</textarea>
@@ -71,11 +73,12 @@
v-bind:pipe='pipe'
v-bind:keep-char-positions='keepCharPositions'
v-bind:aria-invalid='showError'
id='{{ field.name }}'
type='text'
{% if disabled %}
disabled="disabled"
readonly="readonly"
{% else %}
id='{{ field.name }}'
{% endif %}
ref='input'
placeholder='{{ placeholder }}'>
@@ -83,7 +86,13 @@
{% endif %}
<input type='hidden' v-bind:value='rawValue' name='{{ field.name }}' />
<input
type='hidden'
v-bind:value='rawValue'
{% if not disabled %}
name='{{ field.name }}'
{% endif %}
/>
<template v-if='showError'>
<span class='usa-input__message' v-html='validationError'></span>