We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Client OS: Windows 11 Browser: Chrome 131
https://reka-ui.com/docs/components/dropdown-menu
Opening and closing the dropdown menu component has latency when using a device with slow CPU (or in power saving mode).
We can see two bottlenecks when the dropdown open:
getBoundingClientRect
radix-vue/packages/core/src/Popper/PopperContent.vue
Lines 323 to 329 in 4823c85
getComputedStyle
Lines 335 to 339 in 4823c85
Maybe it's because they are called after styles (overflow, pointer-events, margin and padding on body) has been applied, forcing browser to reflow
Here is the performance trace recorded: https://trace.cafe/t/On8azGJwtH
Other implementations like melt-ui and shadcn-ui seem to perform better even with higher CPU throttling
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Link to minimal reproduction
https://reka-ui.com/docs/components/dropdown-menu
Steps to reproduce
Describe the bug
Opening and closing the dropdown menu component has latency when using a device with slow CPU (or in power saving mode).
We can see two bottlenecks when the dropdown open:
getBoundingClientRect
force a reflow:radix-vue/packages/core/src/Popper/PopperContent.vue
Lines 323 to 329 in 4823c85
getComputedStyle
also force a reflow:radix-vue/packages/core/src/Popper/PopperContent.vue
Lines 335 to 339 in 4823c85
Maybe it's because they are called after styles (overflow, pointer-events, margin and padding on body) has been applied, forcing browser to reflow
Here is the performance trace recorded: https://trace.cafe/t/On8azGJwtH
Expected behavior
Other implementations like melt-ui and shadcn-ui seem to perform better even with higher CPU throttling
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: