Skip to content

fix: wire up ref correctly for PMME#2418

Closed
tjclawson-stripe wants to merge 1 commit into
masterfrom
tyler/pmme-ref
Closed

fix: wire up ref correctly for PMME#2418
tjclawson-stripe wants to merge 1 commit into
masterfrom
tyler/pmme-ref

Conversation

@tjclawson-stripe
Copy link
Copy Markdown
Collaborator

Summary

Accept ref from forwardRef callback and pass to native element

Motivation

The component used forwardRef but ignored the forwarded ref parameter. Instead, it created its own internal useRef (viewRef) and passed that to the native element. This meant any consumer passing a ref to would get nothing — the ref was silently dropped

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@huextrat
Copy link
Copy Markdown
Contributor

So I'm closing #2418? Does this repo no longer accept PR from the community?

@tjclawson-stripe tjclawson-stripe deleted the tyler/pmme-ref branch May 19, 2026 18:22
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.

3 participants