You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In core.ts event name is determined by code: const name = event.replace(/^on/, "").toLowerCase()
so if I have a property called onComponentReady the event name will be componentready, but should be component-ready
The text was updated successfully, but these errors were encountered:
This is done to match how event names are handled in the DOM. With the exception of certain events prefixed with "DOM" and otherwise camel cased, all event names and their "on" property equivalents are lowercased such as "readystatechange" / "onreadystatechange"
It's important to distinguish the convention here, that events are by convention lowercased, whereas attributes of an HTML element are kebab cased. When using the events feature in r2wc, it is not necessary to provide attribute values to receive events from "onX" functions.
In core.ts event name is determined by code:
const name = event.replace(/^on/, "").toLowerCase()
so if I have a property called
onComponentReady
the event name will becomponentready
, but should becomponent-ready
The text was updated successfully, but these errors were encountered: