Skip to content

Commit 149e4e1

Browse files
committed
updated upload field
1 parent aae3610 commit 149e4e1

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

dist/vue-formly-bootstrap.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-formly-bootstrap v1.0.3
2+
* vue-formly-bootstrap v1.0.4
33
* https://github.com/matt-sanders/vue-formly-bootstrap
44
* Released under the MIT License.
55
*/
@@ -690,7 +690,9 @@ return /******/ (function(modules) { // webpackBootstrap
690690
mixins: [_baseField2.default],
691691
methods: {
692692
onChange: function onChange(e) {
693-
if (this.form[key].inputType == 'file') {
693+
this.$set('form.' + this.key + '.$dirty', true);
694+
this.runFunction('onChange', e);
695+
if (this.form[this.key].inputType == 'file') {
694696
this.$set('form.' + this.key + '.files', this.$el.querySelector('input').files);
695697
}
696698
}

0 commit comments

Comments
 (0)