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
The event firing from the dynamic component should trigger the onbar function passed into lwc:spread object.
Actual Results
Error: [LWC warn]: Unknown public property "onbar" of element <x-dynamic>. This is either a typo on the corresponding attribute "onbar", or the attribute does not exist in this browser or DOM implementation.
Browsers Affected
All.
Version
LWC: 8
Possible Solution
Probably to manually addEventListener each of the on prefixed keys in the object. Don't know if onclick 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:
I don't have a use for this, but did notice that symbols are also not binded to the host element with lwc:spread. So it doesn't look to be binding all keys, possibly only keys with a string type.
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: