sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Application customizer breaks on events pages in communication sites

Open estruyf opened this issue 8 years ago • 3 comments

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:

large gif 1080x844

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

estruyf avatar Jan 23 '18 16:01 estruyf

@VesaJuvonen @estruyf any status update on resolving this bug? I'm running into this issue as well.

patrickabel avatar Mar 12 '18 19:03 patrickabel

This issue is a duplicate of #1042 I'll close this issue so we can track it on a single issue.

mpasarin avatar Mar 19 '18 22:03 mpasarin

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

msft-github-bot avatar Jan 28 '20 12:01 msft-github-bot