Skip to content

Add ref to Button#586

Merged
plaharanne merged 1 commit into
masterfrom
p/button-ref
May 4, 2026
Merged

Add ref to Button#586
plaharanne merged 1 commit into
masterfrom
p/button-ref

Conversation

@plaharanne
Copy link
Copy Markdown
Contributor

@plaharanne plaharanne commented Apr 30, 2026

Summary of changes

I've added ref support to Button so overlay components like Popconfirm can reliably attach to and position themselves against the real DOM button element, especially after React 19 timing/lifecycle changes.

Without it, Popconfirm may briefly lose its anchor and appear in the wrong place.

Checklist

  • Link to issue this PR refers to: https://github.com/crate/cloud/issues/2930
  • Relevant changes are reflected in CHANGES.md.
  • Added or changed code is covered by tests.
  • Required Grand Central APIs are already merged.

@plaharanne plaharanne marked this pull request as ready for review April 30, 2026 14:19
@plaharanne plaharanne requested a review from joncombe as a code owner May 4, 2026 07:57
@plaharanne plaharanne merged commit 9c70987 into master May 4, 2026
2 checks passed
@plaharanne plaharanne deleted the p/button-ref branch May 4, 2026 07:59
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.

2 participants