This form leaves the page when it is sent
The message
MARKLESS_ASYNC_POST_FORM_LEAVES_PAGE: This form posts and has no submit handler, so the browser sends it and leaves the page to show the answer, even though it renders inside a @try with a @catch: <reason>.
Markless sends a form from the page only when every place its component renders has a @catch to show a failed send. Each file is compiled on its own, so all of those places must be visible in this file.
<fix>, or write the form in the component that holds the @try. To keep the browser's own submit, add rel="external" to the form.
https://markless.dev/errors/MARKLESS_ASYNC_POST_FORM_LEAVES_PAGEWords in angle brackets change from case to case.
Why
Markless sends a form from the page only when every place its component renders has a @catch to show a failed send. Each file is compiled on its own, so all of those places must be visible in this file.
Fix
<fix>, or write the form in the component that holds the @try. To keep the browser's own submit, add rel="external" to the form.
If you accept the warning on purpose, put this comment on the line above it:
// markless-allow MARKLESS_ASYNC_POST_FORM_LEAVES_PAGE: the reason you accept it