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)
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: