Runtime Error
SseClosestFormNotFound
No closest form could be found in the DOM. When setting the contentType
option to form
, the element must have a wrapping form, otherwise a selector
must be provided to a form that exists in the DOM.
Example using a wrapping form:
Example using a selector:
1<button data-on-click={ "@" + action + "('/endpoint', {contentType: 'form', selector: '#myform'})" }></button>
See the docs for the @get()
action.