-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
When I use astro-diagram to render the mermaid sequence diagram, in developer mode, an error is reported! #9856
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: toolbar
Related to dev toolbar (scope)
Comments
iamyunsin
pushed a commit
to iamyunsin/astro
that referenced
this issue
Jan 29, 2024
…. When multiple values are set in the role, only the first value is returned. fix withastro#9856
iamyunsin
added a commit
to iamyunsin/astro
that referenced
this issue
Jan 29, 2024
…. When multiple values are set in the role, only the first value is returned. fix withastro#9856
bluwy
added
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: toolbar
Related to dev toolbar (scope)
and removed
needs triage
Issue needs to be triaged
labels
Jan 29, 2024
iamyunsin
added a commit
to iamyunsin/astro
that referenced
this issue
Jan 30, 2024
…, when multiple roles exist, check each role. fix withastro#9856
iamyunsin
added a commit
to iamyunsin/astro
that referenced
this issue
Jan 30, 2024
…, when multiple roles exist, check each role. fix withastro#9856
iamyunsin
added a commit
to iamyunsin/astro
that referenced
this issue
Jan 30, 2024
…, when multiple roles exist, check each role. fix withastro#9856
natemoo-re
added a commit
that referenced
this issue
Feb 13, 2024
* fix: Fixing the issue of errors caused by multiple values in the role, when multiple roles exist, check each role. fix #9856 * Update .changeset/eight-flowers-remain.md --------- Co-authored-by: Nate Moore <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: toolbar
Related to dev toolbar (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
I found through breakpoint debugging that the issue is due to the role attribute of the SVG node rendered by mermaid being set to
role="graphics document"
, resulting inconst {required Props}=roles. get (role)
in a11y.js; The code encountered an error during execution.I understand that it may be necessary to parse the role attribute. If multiple roles are set, the value with index 0 will be prioritized.
What's the expected result?
Don't make an error.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ankjbg?file=package.json
Participation
The text was updated successfully, but these errors were encountered: