Skip to content

Commit 896b810

Browse files
feat: update to upstream @floating-ui/core@1.7.3 (#174)
* feat: update to upstream @floating-ui/core@1.7.3 * fix(core): ensure perpendicular axis flips with cross axis alignment --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniëlle Huisman <danielle@huisman.me>
1 parent faacb27 commit 896b810

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/core/src/middleware/flip.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,11 @@ impl<Element: Clone + PartialEq, Window: Clone + PartialEq> Middleware<Element,
304304
if !ignore_cross_axis_overflow ||
305305
// We leave the current main axis only if every placement on that axis overflows the main axis.
306306
overflows_data.iter().all(|d| {
307-
d.overflows.first().is_some_and(|overflow| *overflow > 0.0)
308-
&& get_side_axis(d.placement) == initial_side_axis
307+
if get_side_axis(d.placement) == initial_side_axis {
308+
d.overflows.first().is_some_and(|overflow| *overflow > 0.0)
309+
} else {
310+
true
311+
}
309312
})
310313
{
311314
// Try next placement and re-run the lifecycle.

upstream.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[releases]
2-
core = "1.7.2"
2+
core = "1.7.3"
33
dom = "1.7.2"
44
utils = "0.2.10"
55
vue = "1.1.7"

0 commit comments

Comments
 (0)