Skip to content

Commit 353c9c3

Browse files
authored
Fix elements with unicode IDs not being found when clicked (#39)
1 parent c5c1597 commit 353c9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scrollactive.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
event.preventDefault();
301301
302302
const { hash } = event.currentTarget;
303-
const target = document.getElementById(hash.substr(1));
303+
const target = document.getElementById(decodeURI(hash.substr(1)));
304304
305305
if (!target) {
306306
console.warn(`[vue-scrollactive] Element '${hash}' was not found. Make sure it is set in the DOM.`);

0 commit comments

Comments
 (0)