Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
absolute
as the default Floating UI strategy (#3097)
* set default anchor strategy to `absolute` This is done for 2 reasons: 1. The default strategy in Floating UI was already `absolute` 2. It can improve performance drastically when using transitions The main reason we used `fixed` was to ensure that it wasn't accidentally positioned to another `relative` element. However, all components that use this `FloatingProvider` will also use a portal which puts elements in the `<body>` already so this should be safe. If it is not safe for your application, then you can still use the `fixed` strategy. * update changelog
- Loading branch information