markbind icon indicating copy to clipboard operation
markbind copied to clipboard

`<a-point>` displays "undefined" for bottom legend

Open AgentHagu opened this issue 8 months ago • 3 comments

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#2563

Tell us about your environment

Windows 10

MarkBind version

6.0.0

Describe the bug and the steps to reproduce it

When visiting the MarkBind user guide, there seems to be an issue with the bottom legend for <a-point>.

Image

For some reason, it displays "undefined" rather than the actual content. Referring to the discussion within issue #2563, it seems that the bottom legend should be the following:

Image

Expected behavior

The bottom legend for <a-point> should properly display the correct content, rather than undefined. Again, it should display the content as discussed in #2563

Anything else?

No response

AgentHagu avatar Apr 17 '25 06:04 AgentHagu

This is likely due to the migration to vue 3.

      const labelText = labelSlotContent?.[0]?.children?.[0]?.text;
      const labelHeader = headerSlotContent?.[0]?.children?.[0]?.text;

Updating these lines to this should work:

      const labelText = labelSlotContent?.[0]?.children;
      const labelHeader = headerSlotContent?.[0]?.children;

Incogdino avatar Apr 17 '25 06:04 Incogdino

Thanks for catching thins. Needs to be fixed quickly.

damithc avatar Apr 17 '25 10:04 damithc

Thanks @Incogdino for the PR #2700 to fix this issue, it's been successfully merged into the master branch.

We're now awaiting a release to deliver these fixes to users.

AgentHagu avatar Apr 19 '25 03:04 AgentHagu