pnp / sp-dev-fx-controls-react

Reusable React controls for SPFx solutions
https://pnp.github.io/sp-dev-fx-controls-react/
MIT License
383 stars 380 forks source link

iFrame Panel Control causes page to scroll when it is closed #1830

Open rmedrano2 opened 3 months ago

rmedrano2 commented 3 months ago

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.18.1 ]

Expected / Desired Behavior / Question

When Closing the Panel in the iFrame Panel Control, I expect the page below to remain in place.

Observed Behavior

When closing the panel, the underlying SharePoint page will scroll almost to the top.

Steps to Reproduce

Navigate to a page that has scrollable content. Scroll to the bottom of the page, Open the panel. Wait for the iframe in the panel to render and then close the panel. The panel will close, and the page you were on will scroll almost to the top of the page.