Open
Description
Hi
Thanks for the great lib!
Following code:
jump(`#SOME-NOT-EXISTING-ID-ON-PAGE`)
will result in quite obscure error:
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
I think error can be improved and if there is no target, it should state that no valid target has been received.
Another thing — is it per design that jump.js errors if query doesn't much any element? Though, it is workaraundable, just want to ensure that it isn't a bug.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels
Activity