Front-end form submits itself when closing the wordpress link-edit dialogue
Opened this issue · 0 comments
montrealks commented
Describe the bug
Front-end form - Pressing the update button in the Insert/edit link dialogue attempts to submit the form.
To Reproduce
Steps to reproduce the behavior:
- Ensure that the form is new_post and post_content field is true
- Add a URL to the post content field
- Click to edit the URL, open the Insert/edit link dialogue
- Press update button in the dialogue window
- Now the form itself will try to submit
Expected behavior
Updating the link details in the edit link dialogue triggers the acf form to attempt to submit itself
Code
acf_form(array( 'post_id' => 'new_post', 'return' => add_query_arg('saved', '1'), 'submit_value' => 'Create Post', 'field_groups' => false, 'form' => false, 'post_title' => true, 'post_content' => true, ));
Version Information:
- WordPress Version [Latest]
- PHP Version [7.xx]
- ACF Version [ACF PRO 6.2.9]
- Browser [Chrome + Firefox]