Relative Content

Tag Archive for javascriptreactjsfocusonblur

scrollIntoView not working when the component is out of focus, on chromium based browsers

I’m building a react single page app and have noticed that the scrollIntoView function does not work on chrome based browsers (tested on edge&chrome) when the component is out of focus.
I have a long async operation that involves waiting on a server response. When that response arrives, some elements are being created and the page should scroll them into view. Losing focus causes the scrolling operation to fail.

scrollIntoView not working when the browser is out of focus, on chromium based browsers

I’m building a react single page app and have noticed that the scrollIntoView function does not work on chrome based browsers (tested on edge&chrome) when the browser is out of focus.
I have a long async operation that involves waiting on a server response. When that response arrives, some elements are being created and the page should scroll them into view. Losing focus causes the scrolling operation to fail.