I have a custom post-type with a number of required fields, including a few link fields.
For any of these link fields, when I click Select Link, enter a URL, and then click ‘Add Link’ (which is a submit input within the modal popup), it appears that it tries to submit/publish the entire post. The posts’s ‘Publish’ button greys-out, a loading spinner appears, and after a few seconds, validation messages appear for all other required fields.
The same does not seem to occur if I first enter data into the required fields, however for content authors this is an undesirable experience for them and I am hoping to track down information on how I might prevent this from happening.
I have tried this on several websites which I work on and the same things seems to happen.
I think I’ve exceeded my time to be able to edit this post so just following up with another screenshot of what occurs after inserting a link. I’ve crossed-out a few things so as not to expose too much information about the website itself. Thanks for reading, any help would be greatly appreciated.