-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: make sure virtualized grid layouts dont disappear when hidden via display: none
#10190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,6 +162,10 @@ function iconWrapperPlugin(): Plugin { | |
| } | ||
|
|
||
| export default defineConfig({ | ||
| define: { | ||
| // make sure virtualizer actually runs since this is in browser | ||
| 'process.env.VIRT_ON': '"1"' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isnt VIRT_ON only relevant for test environments? This is to say, why are the browser tests using the test environment instead of dev or prod? A bunch of logic behind the test flag is tailored around JDOM and synthetic event quirks etc, which are not applicable to CDP and a real browser.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh fair point, didn't really consider that but makes sense |
||
| }, | ||
| plugins: [ | ||
| // @ts-expect-error | ||
| macros.vite(), // Must be first! | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to think about this check since jsdom is probably not the only one used in tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check
isElementVisible()instead? This will inherit display and should work in test environments.