Application customizer breaks on events pages in communication sites
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
When creating an application customizer that shows a header or footer, the expected behavior should be that it is loaded on every modern page.
Observed Behavior
It appears that on communication sites, when you create, edit, or display an event. The application customizer is not rendered. When opening the browser console, you get the following error:
sp-pages-assembly_en-us_18b206dbf5ea8a9da3221367da049861.js:547
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
at e._scrollEventHandler (sp-pages-assembly_en-us_18b206dbf5ea8a9da3221367da049861.js:547)
at e (sp-pages-assembly_en-us_18b206dbf5ea8a9da3221367da049861.js:312)
at u (sp-pages-assembly_en-us_18b206dbf5ea8a9da3221367da049861.js:312)
at e.s (sp-pages-assembly_en-us_18b206dbf5ea8a9da3221367da049861.js:312)
When you refresh the page, the error is gone and your app. custom. appears again.
Here you can see the process of what happens:

Steps to Reproduce
I tried this by following the guide: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/using-page-placeholder-with-extensions
@VesaJuvonen @estruyf any status update on resolving this bug? I'm running into this issue as well.
This issue is a duplicate of #1042 I'll close this issue so we can track it on a single issue.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues