Skip to content

fix: add asChild to Tooltip components wrapping Button triggers#2315

Merged
geclos merged 1 commit intomainfrom
claude/fix-nested-button-hydration-UEnOJ
Feb 17, 2026
Merged

fix: add asChild to Tooltip components wrapping Button triggers#2315
geclos merged 1 commit intomainfrom
claude/fix-nested-button-hydration-UEnOJ

Conversation

@geclos
Copy link
Collaborator

@geclos geclos commented Feb 17, 2026

TooltipTrigger renders its own element by default. When a Button component is passed as the trigger, this creates nested elements which is invalid HTML and causes hydration errors.

Adding asChild makes the TooltipTrigger merge its props into the child element instead of wrapping it in an additional button.

https://claude.ai/code/session_01EsKrmtqHDcdzBA5wifn2d7

TooltipTrigger renders its own <button> element by default. When
a Button component is passed as the trigger, this creates nested
<button> elements which is invalid HTML and causes hydration errors.

Adding asChild makes the TooltipTrigger merge its props into the
child element instead of wrapping it in an additional button.

https://claude.ai/code/session_01EsKrmtqHDcdzBA5wifn2d7
@geclos geclos merged commit de352b0 into main Feb 17, 2026
14 checks passed
@geclos geclos deleted the claude/fix-nested-button-hydration-UEnOJ branch February 17, 2026 10:08
@github-project-automation github-project-automation bot moved this from Inbox to Done in Latitude LLM Roadmap Feb 17, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants