Skip to content

Commit

Permalink
Merge pull request #3 from Ezcred-Org/CREDIT-6636
Browse files Browse the repository at this point in the history
Update brutusin-json-forms.js
  • Loading branch information
vishnuscv authored Nov 23, 2020
2 parents b042996 + 6b1e309 commit dfe76fd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dist/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ if (typeof brutusin === "undefined") {
return clone;
} else if (object === "") {
return null;
} else if (object instanceof Object) {
} else if (object instanceof Object && !(object instanceof File)) {
var clone = new Object();
var nonEmpty = false;
for (var prop in object) {
Expand Down Expand Up @@ -1251,6 +1251,16 @@ if (typeof brutusin === "undefined") {
}

function getValue(schema, input) {
if(schema.$id === "$.Document") {
input.type = 'file';
input.getValue = function(){
if(input.value && input.files.length ){
return input.files[0];
} else {
return null;
}
};
}
if (typeof input.getValue === "function") {
return input.getValue();
}
Expand Down

0 comments on commit dfe76fd

Please sign in to comment.