mui / base-ui

Base UI is an open-source library of accessible, unstyled UI components for React.
MIT License
291 stars 47 forks source link

[useAnchorPositioning] Disable auto axis flipping #817

Closed atomiks closed 6 days ago

atomiks commented 2 weeks ago

Based on https://github.com/mui/base-ui/pull/810, auto side axis-based flipping should be off by default.

Changing the algorithm in Floating UI will probably require considerable effort/time to resolve in a way that works in most situations (for instance, the alignment chosen seems incorrect based on the preferred side).

For now this is a good enough default to use as other libraries use this.

Two workarounds exist to this prop:

mui-bot commented 2 weeks ago

Netlify deploy preview

https://deploy-preview-817--base-ui.netlify.app/

Generated by :no_entry_sign: dangerJS against c0817916f10e2caf18a660526e7ea9265a69a887