Repository navigation
Conversation
Operations and schemas lists are virtualized above a size threshold for performance, which keeps off-screen items out of the DOM. This makes the browser's native find-in-page (Cmd/Ctrl+F) unable to match items that haven't been scrolled into view. Add a disableVirtualization config flag so users can opt out of virtualization and keep full-DOM rendering when native find matters more than large-spec render performance. Fixes swagger-api#11056
This was referenced Nov 15, 2026
saaiilbasnet
approved these changes
Nov 15, 2026
saaiilbasnet
left a comment
There was a problem hiding this comment.
LGTM! The implementation looks good.
The disableVirtualization option provides a useful way to disable virtualization for both operations and schemas, allowing users to leverage native browser find-in-page functionality when needed.
The default behavior remains unchanged, and the added unit tests cover both virtualized and non-virtualized rendering paths. The configuration is also clearly documented.
Thanks for the contribution! Approving this PR.
asaugat04
requested review from
cka121,
glowcloud and
robert-hebel-sb
as code owners
November 20, 2026 12:22
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR does the following:
disableVirtualizationconfig option (defaultfalse).true, the operations list (src/core/components/operations.jsx) and the schemas/models lists (src/core/plugins/oas31/components/models/models.jsx,src/core/plugins/json-schema-5/components/models.jsx) render every item into the DOM instead of only the items currently in the viewport.docs/usage/configuration.md.Motivation and Context
Virtualization of the operations and schemas lists keeps large specs performant by only mounting items near the viewport. A side effect is that off-screen items aren't in the DOM, so the browser's native find-in-page (Cmd/Ctrl+F) can't match operations or schemas that haven't been scrolled into view, and there was no supported way to opt out.
This adds an explicit escape hatch: users who need full-DOM rendering (native find, other DOM-dependent tooling, accessibility tooling that walks the DOM) can set
disableVirtualization: trueand accept the performance trade-off on very large specs.Fixes #11056
How Has This Been Tested?
disableVirtualization: truefor the operations list and both models components.npm run test:unit) — no regressions from this change (one pre-existing, unrelated jsdomwindow.locationfailure intest/unit/core/utils.jsis present onmainas well).npm run build:coreto confirm the bundle still compiles.eslint/prettieragainst all changed files with zero warnings.Screenshots (if appropriate):
N/A — config-only change, no visual difference at the default (
false).Checklist
My PR contains...
My changes...
Documentation
Automated tests