-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
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
bubblesconfiguration from the event definition inremoteEvents - Automatically apply it to any event returned by
dispatchEvent() - Override any
bubblessetting 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
},
},
};
}Metadata
Metadata
Assignees
Labels
No labels