Repository navigation
fix(hover-card): don't open an empty card (Solid 2) - #154
Merged
riccardoperra merged 1 commit intoNov 28, 2026
Merged
Conversation
With open={false}, the first hover marked the card open internally, so the
next hover, focus or click showed the shared surface with nothing in it.
show() now reads the wanted state, and a card without HoverCardContent
does not open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 6d52312 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
CodeUI package previewBuilt from npm install https://pkg.pr.new/riccardoperra/codeui/@codeui/kit@6d523125af7b5e7b612bdda66c44a24501b6bd1cThe kit installs matching previews of |
Contributor
|
Docs preview deployed to Cloudflare Pages.
Built from 6d52312. |
riccardoperra
merged commit Nov 28, 2026
f8305a1
into
feat/upgrade-solid2-kobalte
5 of 6 checks passed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In CodeLoom, hovering an editor tab a second time opened an empty round hover card.
DetailCardpassesopen={false}when there is nothing to show.Cause
show()read the internalstateflag. The first hover set that flag totrue(throughsetOpen(true)) even though the controlledopenprop stayedfalse. On the next hover, focus or click,show()took thehost.show(entry)branch and put the shared surface on screen with no content.Fix
show()readswanted()(the controlledopen, or the uncontrolled value) instead ofstate.open()andopenNow()do nothing while the card has noHoverCardContent, the same way the tooltip fix in fix(tooltip): don't open an empty bubble when content is missing (Solid 2) #153 works.Tests
test/hover-card.test.tsx: one foropen={false}across repeated hover, focus and click, one for a card with no content. Both fail without the fix.tscpasses.🤖 Generated with Claude Code