Open chrisekelley opened 3 years ago
Editor's tangy-forms-player component starts the process monitor service here:
formEl.addEventListener('before-submit', async (event) => {
if (this.preventSubmit) event.preventDefault()
this.process = this.processMonitorService.start('saving-a-tangy-form', 'Updating a form response.')
this.$submit.next(true)
})
and listens for completion here:
formEl.addEventListener('after-resubmit', async (event) => {
if (this.preventSubmit) event.preventDefault()
while (this.throttledSaveFiring === true) {
await sleep(1000)
}
this.processMonitorService.stop(this.process.id)
this.$afterResubmit.next(true)
})
Current version: v3.20.0
Issue on server:
Expected behavior
Process prompt "Updating a form response." should be dismissed once form is submitted.
Actual behavior
It stays on the screen and user must dismiss it, which results in another dialogue box that is scary.
Steps to reproduce the behavior
Go to Device Users and create a new device user, submit.