Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollspy doesn't work with CJK, Greek language targets #36939

Closed
3 tasks done
razonyang opened this issue Aug 11, 2022 · 4 comments · Fixed by #35566
Closed
3 tasks done

Scrollspy doesn't work with CJK, Greek language targets #36939

razonyang opened this issue Aug 11, 2022 · 4 comments · Fixed by #35566
Labels

Comments

@razonyang
Copy link

razonyang commented Aug 11, 2022

Prerequisites

Describe the issue

Related issue #10205(v2/v3)

Uncaught DOMException: Failed to execute 'querySelector' on 'Element': '#%E8%83%8C%E6%99%AF%E5%9B%BE%E7%89%87' is not a valid selector.
    at Object.findOne (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:9928)
    at mn._initializeTargetsAndObservables (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:72435)
    at mn.refresh (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:70756)
    at new mn (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:70629)
    at mn.getOrCreateInstance (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:8197)
    at https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:73489
    at i (https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js:6:4253)

Reduced test cases

https://codepen.io/razonyang/pen/rNdZBjg

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.2

@razonyang
Copy link
Author

@GeoSot Hi, this issue still exists on the main branch, but I've no permission to re-open this issue.

@GeoSot
Copy link
Member

GeoSot commented Nov 16, 2022

According to #35566 tests, it shouldn't exist. Please, Update your codepen, or open a new issue (with the given example)

Thank you @razonyang

@razonyang
Copy link
Author

@GeoSot Thanks for the quick response. Since it's hard to import the latest change of main branch in CodePen, I fork and create a new branch called scrollspy, which include examples inside the dist folder.

The index.en.html works fine, but the index.html(with Chinese characters anchors) doesn't.

I've run the npm run dist for compiling the source code to dist folder.

@razonyang
Copy link
Author

👀 Hi, is there any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants