We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14b1c3 commit c937fa9Copy full SHA for c937fa9
src/hooks/useTarget.ts
@@ -47,7 +47,7 @@ export default function useTarget(
47
const updatePos = useEvent(() => {
48
if (targetElement) {
49
// Exist target element. We should scroll and get target position
50
- if (!isInViewPort(targetElement) && open) {
+ if (!inlineMode && !isInViewPort(targetElement) && open) {
51
targetElement.scrollIntoView(scrollIntoViewOptions);
52
}
53
0 commit comments