fix FileItem to work with validation

(cherry picked from commit aa5e276cd18a40e8cb190967c609645343702e2e)
This commit is contained in:
axolotle 2021-01-31 16:14:05 +01:00 committed by ljf
parent 58fe9a6924
commit ada9a8d0b8

View file

@ -5,19 +5,21 @@
v-on="$listeners"
:placeholder="placeholder"
:drop-placeholder="dropPlaceholder"
:state="Boolean(file)"
:state="state"
:required="required"
:accept="accept"
@blur="$parent.$emit('touch', name)"
:browse-text="$t('words.browse')"
@focusout.native="$parent.$emit('touch', name)"
/>
</template>
<script>
export default {
name: 'FileItem',
data () {
return { file: null }
},
props: {
id: { type: String, default: null },
placeholder: { type: String, default: null },