python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
ref scrollIntoView does not work with behavior smooth on react
I am creating a component that will hold a dynamic list of elements and for styling reasons, I need to keep the title for each section in a sticky nav menu.
As the user scrolls up and down the list of...
Gareth Townsend
Votes: 0
Answers: 2
Active object of the mapped array show center in scroll items react
I have mapped my data into timetable and showed them date wise (30 days) in horizontal scroll. I have set current date data as active element. But when the date is far like 22nd position and the view ...
Atiq Israk
Votes: 0
Answers: 1
React: scrollIntoView not working following by dependency of useEffect
I have got a dependency imageNo in useEffect() as I want the element to go up when it's being hidden, but scrollIntoView() does not work properly whenever imageNo changes, but it works when clicking a...
Uhney
Votes: 0
Answers: 1
scrollIntoView() doesn't scroll anywhere
I can't get Element.scrollIntoView() to work. I have the code below. There are two locations that it should scroll to, depending on some variable. However, it doesn't scroll to either of them. What am...
Nick
Votes: 0
Answers: 2