primitives
primitives copied to clipboard
Performance bottleneck on popover
Bug report
Current Behavior
I am having a performance issue when using the popover. I found it's origin on this code:
https://github.com/radix-ui/primitives/blob/b32a93318cdfce383c2eec095710d35ffbd33a1c/packages/react/focus-guards/src/FocusGuards.tsx#L18-L19
It takes an average of 100ms each call to insertAdjacentElement
.
Expected behavior
Your environment
Software | Name(s) | Version |
---|---|---|
Radix Package(s) | @radix-ui/react-popover | 1.0.7 |
React | n/a | 18.2.0 |
Browser | Chrome | Versión 123.0.6312.86 (Build oficial) (64 bits) |
Assistive tech | ||
Node | n/a | v20.11.0 |
npm/yarn | npm | 10.5.0 |
Operating System | Windows | 11 |