Skip to content

Commit 80c9f9e

Browse files
committed
adding support for different input types
1 parent d06d4f3 commit 80c9f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fields/fieldInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="form-group formly-input" :class="[ to.type, {'formly-has-value': model[field.key], 'formly-has-focus': form[field.key].$active}]">
33
<label v-if="to.label" :for="to.id ? to.id : null">{{to.label}}</label>
4-
<input class="form-control" :class="to.classes" :id="to.id ? to.id : null" type="text" v-model="model[field.key]" @blur="onBlur" @focus="onFocus" @click="onClick" @change="onChange" @keyup="onKeyup" @keydown="onKeydown" v-formly-atts="to.atts">
4+
<input class="form-control" :class="to.classes" :id="to.id ? to.id : null" type="text" v-model="model[field.key]" @blur="onBlur" @focus="onFocus" @click="onClick" @change="onChange" @keyup="onKeyup" @keydown="onKeydown" v-formly-atts="to.atts" v-formly-input-type="to.type">
55
</div>
66
</template>
77

0 commit comments

Comments
 (0)