Skip to content

Commit 3718011

Browse files
authored
[DOM] Drop empty Fragment scrollIntoView no-op warning (react#37171)
This isn't actionable and should noop.
1 parent 807d21f commit 3718011

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3603,12 +3603,6 @@ if (enableFragmentRefsScrollIntoView) {
36033603
: hostSiblings[0] || hostSiblings[1];
36043604

36053605
if (targetFiber === null) {
3606-
if (__DEV__) {
3607-
console.warn(
3608-
'You are attempting to scroll a FragmentInstance that has no ' +
3609-
'children, siblings, or parent. No scroll was performed.',
3610-
);
3611-
}
36123606
return;
36133607
}
36143608
// For text node siblings, use Range API to scroll to their position

0 commit comments

Comments
 (0)
⌂ 换网址