client.instance.close() preventing API calls inside modal

I´ve got a modal with some input fields and submit button. Submit button collecting the fields and adding a note via api call and changing the assigned group via api call. All working fine. 

Then I wanted to automatically close the modal when hitting submit button so I added client.instance.close() after my api calls to close the modal.

The modal closes, but the data is never sent to the api.

Removing the client.instance.close() from code, api call is sent again, so it is definitely a problem with the modal close.

Somebody got a similar problem or an idea what the problem could be?

Best Regards

Login or Signup to post a comment