Skip to content

Commit 9738899

Browse files
fix: use fallbackAxisSideDirection option
1 parent 1f1f8d6 commit 9738899

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/compute-positions.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ export const computeTooltipPosition = async ({
88
place = 'top',
99
offset: offsetValue = 10,
1010
strategy = 'absolute',
11-
middlewares = [offset(Number(offsetValue)), flip(), shift({ padding: 5 })],
11+
middlewares = [
12+
offset(Number(offsetValue)),
13+
flip({
14+
fallbackAxisSideDirection: 'start',
15+
}),
16+
shift({ padding: 5 }),
17+
],
1218
border,
1319
}: IComputePositions) => {
1420
if (!elementReference) {

0 commit comments

Comments
 (0)