@Listen and custom events use document.body, document or window as targets/dispatchers. We should audit and update our conventions with information regarding the appropriate target to use per context.
Proposed Advantages
Consistent target/dispatching for non-component events.
Which Component
All components dispatching/listening events on document or document.body and possibly window.
Description
@Listen
and custom events usedocument.body
,document
orwindow
as targets/dispatchers. We should audit and update our conventions with information regarding the appropriate target to use per context.Proposed Advantages
Consistent target/dispatching for non-component events.
Which Component
All components dispatching/listening events on
document
ordocument.body
and possiblywindow
.Relevant Info
Stems from https://github.com/Esri/calcite-design-system/pull/7466#discussion_r1284921350
Calcite package