jhildenbiddle/docsify-tabs

Tab is not displayed when id contains url encoded characters

taiking opened this issue · 3 comments

hi, I found a bug according to the title.

For example, if you go directly to the URL below, the tab will not be displayed.
http://localhost:3000/#/hoge?id=%e3%81%82

It worked in version 1.2.0, but not in 1.3.0 or later.

JavaScript throws an error in the following part

const isAnchorElmInTabBlock = anchorID && document.querySelector(`.${classNames.tabBlock} #${anchorID}`);

@taiking

Can you share a link to the site or the markdown that demonstrates the error? That will make it easier to verify that the bug has been fixed during development.

Thanks!

Fixed in 1.4.1

Thanks for filing the issue, @taiking.

Thank you!