The bubbles configuration in remoteEvents is not automatically applied to events returned by dispatchEvent() functions. This forces developers to manually duplicate the bubbles configuration in each event constructor call.
Current behavior
static get remoteEvents() {
return {
click: {
bubbles: true, // This configuration is ignored
dispatchEvent() {
return new Event('click', {bubbles: true}); // Manual duplication required
},
},
};
}
Expected behavior
The remote-dom framework should:
- Read the
bubbles configuration from the event definition in remoteEvents
- Automatically apply it to any event returned by
dispatchEvent()
- Override any
bubbles setting in the returned event with the configured value
static get remoteEvents() {
return {
click: {
bubbles: true, // This should be automatically applied
dispatchEvent() {
return new Event('click'); // No manual bubbles specification needed
},
},
};
}
The
bubblesconfiguration inremoteEventsis not automatically applied to events returned bydispatchEvent()functions. This forces developers to manually duplicate thebubblesconfiguration in each event constructor call.Current behavior
Expected behavior
The
remote-domframework should:bubblesconfiguration from the event definition inremoteEventsdispatchEvent()bubblessetting in the returned event with the configured value