K
K
kaban4o2020-09-03 23:11:20
JavaScript
kaban4o, 2020-09-03 23:11:20

How to fix the error, after transferring to a hosting, scroll up?

The situation is like this. The situation is like this. The situation is like this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-09-03
@hzzzzl

it works for me on both links (are we talking about the "up" button from the bottom right?), but the error
Cannot read property 'scrollIntoView' of null is written to the console

const blockID = anchor.getAttribute('href').substr(1)   // вот этого нет?
    document.getElementById(blockID).scrollIntoView({

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question