Skip to content

Commit c937fa9

Browse files
authored
fix: inline dead loop (#78)
1 parent d14b1c3 commit c937fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useTarget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function useTarget(
4747
const updatePos = useEvent(() => {
4848
if (targetElement) {
4949
// Exist target element. We should scroll and get target position
50-
if (!isInViewPort(targetElement) && open) {
50+
if (!inlineMode && !isInViewPort(targetElement) && open) {
5151
targetElement.scrollIntoView(scrollIntoViewOptions);
5252
}
5353

0 commit comments

Comments
 (0)