T119error

$event or $form misused

$event or $form is used outside an event handler, or used in a way it does not support.

$event and $form only exist inside p-on and p-event handlers, and are passed whole: reading a property from them in the template is not supported. The browser's own event object is $event, not event.

Pass $event or $form whole to the handler, and read their properties inside it.

$ piko explain T119

Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeEventPlaceholderMisuse in Piko's source to see where it is reported.