Closed MosheL closed 1 year ago
That's what the warning is telling you to do:
should be passed as "el: document.querySelector('${position.el}')"
Normally, it takes into account this scenarios. You can find the whole explanation in the source file, I think you checked it. The problem could be something else but you didn't provide a reproduction. BTW, you can ask questions (without a reproduction) in the discussions
Reproduction
History mode router, with a numeric hash
Steps to reproduce the bug
navigate to any page with a router with numeric hash in the URL.
Expected behavior
The page will navigate to a div with the numeric id, or if it did not exists it will ignore it.
Actual behavior
Internal exception, ignored with a try catch.
Additional information
There is a simple solution to it so It can fixable use
document.getElementById(position.el.substring(1))
. It works with numbers.