[DOM] Drop empty Fragment scrollIntoView no-op warning (#37171)
This isn't actionable and should noop.
Jack Pope committed
Aug 10, 2026 at 20:49 UTC
371801103e8796cd0c57da28671bcc802c2972f7
1 file changed
-6
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
-6
@@ -3603,12 +3603,6 @@ if (enableFragmentRefsScrollIntoView) {
3603
: hostSiblings[0] || hostSiblings[1];
3604
3605
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
- }
3606
return;
3607
}
3608
// For text node siblings, use Range API to scroll to their position