Skip to content

Commit

Permalink
FIO-3820: File synchronization feature (#5367)
Browse files Browse the repository at this point in the history
* implemented files preparing to sync on submit event

* added ability to manually synchronize files

* fixed some issues

* fixed issues and tests

* fixed multipart upload
  • Loading branch information
roma-formio authored Nov 28, 2023
1 parent 30c6e13 commit 99932a9
Show file tree
Hide file tree
Showing 16 changed files with 623 additions and 270 deletions.
5 changes: 4 additions & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,10 @@ export default class Webform extends NestedDataComponent {

this.addComponents();
this.on('submitButton', options => {
this.submit(false, options).catch(e => e !== false && console.log(e));
this.submit(false, options).catch(e => {
options.instance.loading = false;
return e !== false && console.log(e);
});
}, true);

this.on('checkValidity', (data) => this.checkValidity(data, true, data), true);
Expand Down
Loading

0 comments on commit 99932a9

Please sign in to comment.