adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
746 stars 753 forks source link

Page Properties dialog instrumented twice #2859

Open HitmanInWis opened 2 months ago

HitmanInWis commented 2 months ago

JavaScript executing on Page Properties instruments the dialog twice. I'm unsure why, but the dialog-loaded event seems to trigger twice on open of Page Properties, hence double-instrumenting.

This impacts the following:

Perhaps we need a simple mechanism that marks a dialog as "instrumented" so that if dialog-loaded fires multiple times for the same dialog open we can exit quickly on instances after the first load.