Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 101334e

Browse files
committed
fix(dropdown): removed flip from middleware
1 parent 080c730 commit 101334e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/cold-pumas-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/ebayui-core": patch
3+
---
4+
5+
fix(dropdown): removed flip from middleware

src/common/dropdown/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
autoUpdate,
3-
flip,
43
computePosition,
54
shift,
65
offset,
@@ -41,7 +40,7 @@ export class DropdownUtil {
4140
computePosition(this.host, this.overlay, {
4241
placement: this.options.reverse ? "bottom-end" : "bottom-start",
4342
strategy: this.options.strategy ?? "fixed",
44-
middleware: [offset(this.options.offset ?? 4), flip({}), shift()],
43+
middleware: [offset(this.options.offset ?? 4), shift()],
4544
}).then(({ x, y }) => {
4645
Object.assign(this.overlay.style, {
4746
left: `${x}px`,

0 commit comments

Comments
 (0)