You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web parts inside collapsed sections are no longer present in the page DOM (previously a placeholder with the instance ID was rendered) #11085
AI-generated responsearea:spfxCategory: SharePoint Framework (not extensions related)status:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
macOS
What browser(s) / client(s) have you tested
💥 Internet Explorer
💥 Microsoft Edge
💥 Google Chrome
💥 FireFox
💥 Safari
mobile (iOS/iPadOS)
mobile (Android)
not applicable
other (enter in the "Additional environment details" area below)
Additional environment details
SharePoint Framework: 1.21.1
Node.js: v22.20.0
Browser: Google Chrome <152.0.7977.77>
Behavior observed at runtime on modern SharePoint Online pages (view mode); not related to build tooling.
Describe the bug / error
We have noticed a recent change in how collapsible sections on modern pages render their content, and it is affecting some of our custom solutions.
Previously, when a section was collapsed, SharePoint still rendered a placeholder element for each web part in that section, including the web part instance ID (e.g. [data-sp-feature-instance-id="<instanceId>"]). Custom solutions could use this to locate a web part on the page even while its section was collapsed, for example to scroll to it or to expand the section and highlight it.
Now, when a section is collapsed, its content appears to be completely removed from the DOM. There is no element with the web part instance ID until the section is expanded, so a web part in a collapsed section can no longer be located on the page.
We would like to understand:
Is this a deliberate change?
If so, is there a supported way for a custom solution to find which collapsible section contains a given web part instance and/or to expand that section programmatically?
Steps to reproduce
Create a modern page with a collapsible section and add any web part (out-of-the-box or SPFx) to it.
Set the section to be collapsed by default and publish the page.
Open the page in view mode and run in the browser console: document.querySelector('[data-sp-feature-instance-id="<instanceId of the web part>"]')
Observe that the result is null.
Expand the section and run the same query again. The element is now found.
Expected behavior
As before, a placeholder element with the web part instance ID is present in the DOM while the section is collapsed. Or, if the new behavior is intentional, a supported way to locate and expand the section that contains a given web part.
Thank you for reporting this issue. Here is an AI-generated initial response:
Classification: Not a bug — the solution depends on SharePoint’s page DOM structure, which Microsoft does not support as a stable API.
Your reproduction shows that [data-sp-feature-instance-id] is absent until the section expands. The type:bug-suspected label does not establish whether the rendering change was deliberate.
SPFx guidance explicitly warns that page DOM structure can change. I found no documented SPFx API for locating a web part’s containing collapsible section or expanding that native section programmatically.
What to do now:
Remove the dependency on the placeholder being present; let users expand the native section before scrolling or highlighting.
If programmatic expansion is essential, ask Microsoft support to confirm whether a supported API is available, or build the collapsible experience within a web part you control.
Additional triage: the DOM support boundary is documented; whether this rendering change was deliberate remains unconfirmed. This remains an in-scope SPFx extensibility/supportability question, not an unrelated end-user issue.
The SPFx overview explicitly states that the SharePoint page DOM is not an API and its structure can change. That supports avoiding a dependency on data-sp-feature-instance-id being present in a collapsed native section. It does not establish that this particular change was intentional; the initial response's categorical "Not a bug" conclusion goes beyond the available evidence. I found no documented native-section lookup/expansion API in the reviewed SPFx guidance and targeted repository documentation searches, but this is not proof that no supported option exists.
Impact and workaround: The reported scenario is modern SharePoint Online pages in view mode, SPFx 1.21.1, Chrome: custom navigation/highlighting cannot locate a web part until its section is expanded. This is a reported break in that workflow, not an independently reproduced product regression. The affected site/user count and whether essential production navigation is blocked are unknown, so severity cannot yet be reliably assigned. Your steps show manual expansion restores the queried element; that is a manual fallback, not an equivalent programmatic workaround. No supported programmatic workaround or fixing version has been verified. The compatibility table lists Node.js 22 for SPFx 1.21.1; the supplied Node.js version alone is not evidence of the cause of this runtime behavior.
Vesa Juvonen (@VesaJuvonen): please confirm whether this is an intended page-rendering/lifecycle change and whether there is a supported API to map a web part instance to its native collapsible section and expand it. If that scenario is unsupported, please determine whether documentation clarification or a developer-platform feature suggestion is the appropriate next step; the current support guidance provides the feature-feedback route. This issue remains open pending that consideration.
For the author, the missing non-sensitive impact details are the first-observed date, whether this affects all tested sites/pages or only some, and whether manual expansion is an acceptable fallback or the workflow is production-blocking. Please keep tenant identifiers, personal data, and unredacted diagnostics out of public comments.
When first observed: We noticed it recently. The same scenario was working as expected until then.
Scope: It reproduces consistently on the pages we have tested with collapsible sections, for both out-of-the-box and SPFx web parts.
Impact: Manual expansion restores the element, but it does not work for our scenario. Our custom solutions guide users to specific web parts on the page, and when the target is in a collapsed section, it cannot be located.
We understand the page DOM is not a supported API. If the change is intentional, a supported way to find which collapsible section contains a web part and expand it would solve this for us.
Follow-up impact update: Your clarification reports consistent behavior across the tested pages with collapsible sections, for both built-in and SPFx web parts. It also establishes that manual expansion does not meet the custom guided-navigation use case: the solution cannot locate its target while the section is collapsed. That makes manual expansion a recovery step, not a viable workaround for this workflow.
Assessment: This remains a reported navigation-workflow break on modern SharePoint Online pages (SPFx 1.21.1, Chrome), not an independently reproduced or confirmed product regression. The number of affected users/sites and production criticality remain unknown; the consistent results across tested pages warrant review but do not establish service-wide impact. No supported programmatic workaround or fixing version has been verified. The SPFx overview explicitly warns that page DOM structure is not an API; that support boundary does not confirm whether this specific rendering change was deliberate.
Vesa Juvonen (@VesaJuvonen): the new evidence narrows the decision to a supported way to preserve guided navigation to web parts in collapsed native sections, rather than suggesting manual expansion again. Please confirm the intended rendering behavior and whether a documented section-lookup/expansion mechanism exists. If none is supported, the next decision is documentation clarification and/or routing the requested capability through the current developer feedback channel. This issue remains open with status:to-be-reviewed; no fix or delivery commitment is implied.
Support reproduction update: We independently reproduced the reported DOM behavior on a published modern SharePoint Online page in view mode, using a built-in Text web part inside a native collapsible section configured as collapsed by default.
After a fresh page reload, querying the target web part’s data-sp-feature-instance-id produced:
Section state
Result
Initially collapsed
null — no matching element
Expanded using the native section control
Matching element found
Collapsed again
null — matching element no longer present
Testing was performed on Windows using the VS Code integrated Chromium browser (Chromium 150). This test covers a built-in web part; we have not independently validated the exact SPFx 1.21.1 / standalone Chrome 152 combination reported by the author.
This confirms the current rendering behavior in our test environment, but does not establish when it changed, whether it was deliberate, or whether it constitutes a product regression.
As noted in the earlier triage, manual expansion restores the element but does not address the author’s guided-navigation requirement. The remaining engineering clarification is whether there is a supported mechanism to identify and expand the native section containing a target web part instance. If that scenario is unsupported, guidance on the appropriate documentation or feature-request route would help establish the next step.
AI-generated responsearea:spfxCategory: SharePoint Framework (not extensions related)status:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Activity
m365-agent-toolkit-assistant commentedon Nov 4, 2026
👋 Hi Anastasiya Zaitsava (@azaitsavadev),
Thank you for reporting this issue. Here is an AI-generated initial response:
Classification: Not a bug — the solution depends on SharePoint’s page DOM structure, which Microsoft does not support as a stable API.
[data-sp-feature-instance-id]is absent until the section expands. Thetype:bug-suspectedlabel does not establish whether the rendering change was deliberate.What to do now:
Useful links:
VesaJuvonen commentedon Nov 4, 2026
Additional triage: the DOM support boundary is documented; whether this rendering change was deliberate remains unconfirmed. This remains an in-scope SPFx extensibility/supportability question, not an unrelated end-user issue.
The SPFx overview explicitly states that the SharePoint page DOM is not an API and its structure can change. That supports avoiding a dependency on
data-sp-feature-instance-idbeing present in a collapsed native section. It does not establish that this particular change was intentional; the initial response's categorical "Not a bug" conclusion goes beyond the available evidence. I found no documented native-section lookup/expansion API in the reviewed SPFx guidance and targeted repository documentation searches, but this is not proof that no supported option exists.Impact and workaround: The reported scenario is modern SharePoint Online pages in view mode, SPFx 1.21.1, Chrome: custom navigation/highlighting cannot locate a web part until its section is expanded. This is a reported break in that workflow, not an independently reproduced product regression. The affected site/user count and whether essential production navigation is blocked are unknown, so severity cannot yet be reliably assigned. Your steps show manual expansion restores the queried element; that is a manual fallback, not an equivalent programmatic workaround. No supported programmatic workaround or fixing version has been verified. The compatibility table lists Node.js 22 for SPFx 1.21.1; the supplied Node.js version alone is not evidence of the cause of this runtime behavior.
Vesa Juvonen (@VesaJuvonen): please confirm whether this is an intended page-rendering/lifecycle change and whether there is a supported API to map a web part instance to its native collapsible section and expand it. If that scenario is unsupported, please determine whether documentation clarification or a developer-platform feature suggestion is the appropriate next step; the current support guidance provides the feature-feedback route. This issue remains open pending that consideration.
For the author, the missing non-sensitive impact details are the first-observed date, whether this affects all tested sites/pages or only some, and whether manual expansion is an acceptable fallback or the workflow is production-blocking. Please keep tenant identifiers, personal data, and unredacted diagnostics out of public comments.
azaitsavadev commentedon Nov 4, 2026
Thanks for the review, Vesa Juvonen (@VesaJuvonen).
We understand the page DOM is not a supported API. If the change is intentional, a supported way to find which collapsible section contains a web part and expand it would solve this for us.
VesaJuvonen commentedon Nov 4, 2026
Follow-up impact update: Your clarification reports consistent behavior across the tested pages with collapsible sections, for both built-in and SPFx web parts. It also establishes that manual expansion does not meet the custom guided-navigation use case: the solution cannot locate its target while the section is collapsed. That makes manual expansion a recovery step, not a viable workaround for this workflow.
Assessment: This remains a reported navigation-workflow break on modern SharePoint Online pages (SPFx 1.21.1, Chrome), not an independently reproduced or confirmed product regression. The number of affected users/sites and production criticality remain unknown; the consistent results across tested pages warrant review but do not establish service-wide impact. No supported programmatic workaround or fixing version has been verified. The SPFx overview explicitly warns that page DOM structure is not an API; that support boundary does not confirm whether this specific rendering change was deliberate.
Vesa Juvonen (@VesaJuvonen): the new evidence narrows the decision to a supported way to preserve guided navigation to web parts in collapsed native sections, rather than suggesting manual expansion again. Please confirm the intended rendering behavior and whether a documented section-lookup/expansion mechanism exists. If none is supported, the next decision is documentation clarification and/or routing the requested capability through the current developer feedback channel. This issue remains open with
status:to-be-reviewed; no fix or delivery commitment is implied.Ashlesha-MSFT commentedon Nov 5, 2026
Support reproduction update: We independently reproduced the reported DOM behavior on a published modern SharePoint Online page in view mode, using a built-in Text web part inside a native collapsible section configured as collapsed by default.
After a fresh page reload, querying the target web part’s
data-sp-feature-instance-idproduced:null— no matching elementnull— matching element no longer presentTesting was performed on Windows using the VS Code integrated Chromium browser (Chromium 150). This test covers a built-in web part; we have not independently validated the exact SPFx 1.21.1 / standalone Chrome 152 combination reported by the author.
This confirms the current rendering behavior in our test environment, but does not establish when it changed, whether it was deliberate, or whether it constitutes a product regression.
As noted in the earlier triage, manual expansion restores the element but does not address the author’s guided-navigation requirement. The remaining engineering clarification is whether there is a supported mechanism to identify and expand the native section containing a target web part instance. If that scenario is unsupported, guidance on the appropriate documentation or feature-request route would help establish the next step.