SharePoint 2019 - Embed Discussion List into Page sets the focus on the embed web part

Kalpana 286 Reputation points
2022-08-19T08:02:38.253+00:00

HI

I am trying to embed a modern discussion list into SharePoint 2019 - modern view. The Iframe tag works fine

<iframe src="https://xxxx/Department/Lists/Now%20Chat/AllItems.aspx?List ={%7Bb38a20aa-389d-49e7-af51-5d8891b9e9e9%7D}&amp;action=embedview&amp;" width="476px" height="288px" frameborder="0" scrolling="no" loading=lazy ">  </iframe>  

The discussion list loads, however upon launch of the page, the focus goes to the Discussion List. The same page has quick charts and view of the document library on top, wonder why the scroll bar automatically jumps to this specific list.

Advice would be appreciated .

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,577 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,561 Reputation points
    2022-08-22T05:47:09.03+00:00

    Hi @Kalpana ,

    Per my test, this situation is normal. Usually, after a web part is submitted, it will be automatically positioned to its location for editors to view the actual display effect.
    Below is a similar thread for you to check out: Sharepoint page after navigation from main page to subpage, not landing at the top of the subpage


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.