- This topic has 3 replies, 3 voices, and was last updated 2 weeks, 3 days ago by .
When AJAX is on for the metabox, after successfully submitting the confirmation message shows correctly but then you get sent to the top of the page. That's particularly jarring for a form that is in the footer for example.
From what I can tell from the JS, after submission the form is removed (in displayMessage due to $form.replaceWith), but then is afterwards referenced as the element to scroll to (scrollTo($form)). As the form is gone at that point, the reference to the element jQuery had is gone, i.e. there's now nothing to scroll to and you end up just scrolling to the top of the page.
- You must be logged in to reply to this topic.