@johly/bits-ui 2.18.7 → 2.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,6 +108,9 @@ export class FloatingContentState {
108
108
  : undefined,
109
109
  ...this.detectOverflowOptions,
110
110
  }),
111
+ this.opts.avoidCollisions.current &&
112
+ this.#collisionAvoidance.side === "flip" &&
113
+ flip({ ...this.detectOverflowOptions }),
111
114
  this.opts.avoidCollisions.current &&
112
115
  this.#collisionAvoidance.side === "flip" &&
113
116
  shift({
@@ -116,9 +119,6 @@ export class FloatingContentState {
116
119
  limiter: this.opts.sticky.current === "partial" ? limitShift() : undefined,
117
120
  ...this.detectOverflowOptions,
118
121
  }),
119
- this.opts.avoidCollisions.current &&
120
- this.#collisionAvoidance.side === "flip" &&
121
- flip({ ...this.detectOverflowOptions }),
122
122
  size({
123
123
  ...this.detectOverflowOptions,
124
124
  apply: ({ rects, availableWidth, availableHeight }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johly/bits-ui",
3
- "version": "2.18.7",
3
+ "version": "2.18.8",
4
4
  "license": "MIT",
5
5
  "repository": "github:johanohly/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",