Skip to content

fix: aria described by sometimes returning stale 'undefined' value#86

Open
PavlovicWorkCo wants to merge 1 commit intotimhettler:mainfrom
PavlovicWorkCo:main
Open

fix: aria described by sometimes returning stale 'undefined' value#86
PavlovicWorkCo wants to merge 1 commit intotimhettler:mainfrom
PavlovicWorkCo:main

Conversation

@PavlovicWorkCo
Copy link

Fixes a bug in which the Card.Target is returning undefined for aria-describedby, causing screen readers not to read the additional description.
I'm not sure in exactly what cases this is happening. You can confirm in on our project by just removing the temporary patch I added that this is happening for a(some) certain component(s).

The issue:

  • directly mutating the shared context object during render.

The fix:
Move React.useId() up to Card.Root so the ID is part of the context from the very first render — no mutation needed.

@vercel
Copy link

vercel bot commented Feb 27, 2026

@PavlovicWorkCo is attempting to deploy a commit to the Tim Hettler's projects Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2026

⚠️ No Changeset found

Latest commit: 46c34a0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant