ui icon indicating copy to clipboard operation
ui copied to clipboard

[bug]: App crashes when opening [tooltip chart] on mobile

Open chinazaaa opened this issue 1 year ago • 2 comments

Describe the bug

When accessing the chart[toolpit] on mobile devices, the app crashes immediately. The issue does not occur on desktop browsers. This bug appears consistently across multiple mobile devices and needs urgent attention.

https://github.com/user-attachments/assets/21a8cc83-7d10-4e84-b7a1-80329e6f58d3

Affected component/components

chart

How to reproduce

  • Open the app on a mobile device shacn
  • Navigate to [Chart] toolpit section
  • Try opening the component on mobile device Observe the app crashing.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

this happens across various mobile device

Before submitting

  • [X] I've made research efforts and searched the documentation
  • [X] I've searched for existing issues

chinazaaa avatar Sep 11 '24 14:09 chinazaaa

https://github.com/shadcn-ui/ui/pull/4812

chinazaaa avatar Sep 11 '24 22:09 chinazaaa

If the defaultIndex is removed from the chart... the error is being resolved even for the mobile version. <ChartTooltip content={<ChartTooltipContent />} cursor={false} defaultIndex={1}
/>

Path: apps\www\registry\new-york\block\chart-tooltip-default.tsx //example...

Please let me know if you need any other solution for this.....

parmeet2311 avatar Sep 12 '24 00:09 parmeet2311

This issue has been automatically marked as stale due to one year of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. (This is an automated message)

shadcn avatar Sep 12 '25 23:09 shadcn

This issue has been automatically closed due to one year of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding! (This is an automated message)

shadcn avatar Sep 19 '25 23:09 shadcn