Custom Events support in lwc:spread
throws unknown public property error
#4545
Labels
lwc:spread
throws unknown public property error
#4545
Description
Using
lwc:spread={apis}
withonclick
works since it's a global property, but custom events won't work. Ex:onbar
.Steps to Reproduce
https://stackblitz.com/edit/salesforce-lwc-qhg5sq?file=src%2Fmodules%2Fx%2Fapp%2Fapp.html,src%2Fmodules%2Fx%2Fapp%2Fapp.js
Expected Results
The event firing from the dynamic component should trigger the
onbar
function passed intolwc:spread
object.Actual Results
Browsers Affected
All.
Version
Possible Solution
Probably to manually
addEventListener
each of theon
prefixed keys in the object. Don't know ifonclick
and global ones like it need to be ignored?Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: