Action trigger close modal before open
What I am trying to do:
I want make email template configuration so inside each template got 3 actions which is Preview, Send Test and Publish.
1. Preview will render the html directly via action modal content,
2. Send Test
will execute an action to send the email with the current template that user editing with
3. publish
action that save the template to the database
What I did:
I've made the actions succefully like what i want it able to preview, send the test email and save the template,
I render the action by looping and given unique name to identify the action for which template
My issue/the error:
the actions only work for the first loop the second and etc wont work or even not execute the process code
9 Replies
My code
this is how i render the actions dynamically
the first component, able to execute the actions well
the second action just loading and done nothing happen like the first action above like nothing modal open or process execute
i saw it trigger close modal instead of open modal
this is when i hit the action at first component
why it trigger close modal ya? before opened it
my mate forget this need to be dynamic as well omaygadd
this is solved
thank youu