scroll-behavior-polyfill icon indicating copy to clipboard operation
scroll-behavior-polyfill copied to clipboard

fix(bug): hash may contain a string that is not a selector

Open chrishoage opened this issue 3 years ago • 0 comments

Closes: https://github.com/wessberg/scroll-behavior-polyfill/issues/21

Following up from the GHI I have gone ahead and went with the try/catch route. If you'd prefer a regex that checks the hash to see if it looks like an ID I'd be happy to adjust

chrishoage avatar Jun 16 '21 01:06 chrishoage