Skip to content

Commit

Permalink
fix: file upload modified value prop directly
Browse files Browse the repository at this point in the history
fix #439
  • Loading branch information
asvae committed Jan 4, 2019
1 parent b34630c commit d3c6d66
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
if (this.fileTypes) {
files = this.validateFileTypes(files)
}
this.files.push(...files)
this.files = [...this.files, ...files]
},
removeFile (index) {
this.files.splice(index, 1)
Expand Down Expand Up @@ -111,15 +111,19 @@ export default {
outline: none;
cursor: pointer;
padding: 0;
& + & {
margin-left: 1.5rem;
}
&--primary {
color: $vue-green;
&:hover {
opacity: 0.6;
}
}
&--secondary {
color: $white;
}
Expand Down

0 comments on commit d3c6d66

Please sign in to comment.