Skip to content

Commit e2063cd

Browse files
committed
lint
1 parent 7bae309 commit e2063cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/internal/primitives/Popover.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('Popover', () => {
100100
},
101101
] as const;
102102

103-
testCases.forEach(({ position, align, expectedTop, expectedLeft }) => {
103+
for (const { position, align, expectedTop, expectedLeft } of testCases) {
104104
it(`positions correctly with position=${position} and align=${align}`, () => {
105105
render(
106106
<Popover
@@ -126,7 +126,7 @@ describe('Popover', () => {
126126
expect(popover.style.top).toBe(`${expectedTop}px`);
127127
expect(popover.style.left).toBe(`${expectedLeft}px`);
128128
});
129-
});
129+
}
130130

131131
it('updates position on scroll', () => {
132132
render(

src/internal/primitives/Popover.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export function Popover({
5050
return;
5151
}
5252

53+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: TODO Refactor this function
5354
const updatePosition = () => {
5455
const triggerRect = anchorEl.getBoundingClientRect();
5556
const contentRect = contentRef.current?.getBoundingClientRect();

0 commit comments

Comments
 (0)