adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.96k stars 1.13k forks source link

[RAC] Add autoscroll config to AriaLink #6953

Open zommerberg opened 2 months ago

zommerberg commented 2 months ago

Provide a general summary of the feature here

I am using the nextjs with the react-aria-components link element. When i navigate between pages i get the following warning: image "Skipping auto-scroll behavior due to position: sticky or position: fixed on element: "

This is expected and a way to deal with it in nextjs is to disable the autoscroll on the <Link element. The link from import Link from 'next/link' has a property called "scroll" which i can set to false. But the react-aria-components Link has no such property and i have no way to disable that warning in the console.

๐Ÿค” Expected Behavior?

Expose a scroll/autoscroll property on the react-aria-components link

๐Ÿ˜ฏ Current Behavior

No scroll/autoscroll on link

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

Cannot remove the warnings if I cannot control autoscroll.

๐Ÿ’ป Examples

No response

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

snowystinger commented 2 months ago

Sorry, I'm not in Next all that frequently, could you provide a codesandbox or stackblitz demonstrating the issue?