I'm really desperate to figure out why this isn't working:
I'm using a modified Spark One dialog component. I've enabled the handleCloseClick workflow in the context via the sc-dialog-root provider. This allows me to close the dialog in a controlled manner via an individual event. Otherwise, it always closes automatically when you click on a button.
Now, handleCloseClick works perfectly as long as it is not integrated into an API.
My plan: When the user has submitted the contact form via API, handleCloseClick should be executed if successful.
As soon as I integrate handleCloseClick into an API event, it no longer works... why?