Skip to content

Fix: properly handle forwarded refs and fix dropdown collection cleanup logic#209

Merged
elenik72 merged 2 commits intomasterfrom
fix/empty-dropdown-ref
May 20, 2025
Merged

Fix: properly handle forwarded refs and fix dropdown collection cleanup logic#209
elenik72 merged 2 commits intomasterfrom
fix/empty-dropdown-ref

Conversation

@elenik72
Copy link
Copy Markdown
Collaborator

Fixed

  • Corrected unsafe usage of ref || localRef by introducing useImperativeHandle for better compatibility with both object and callback refs.
  • Added useEffect cleanup to remove dropdown reference on component unmount.
  • Fixed bug in collections.remove() where removed dropdowns were not actually excluded from internal list.

@elenik72 elenik72 changed the title fix memory leak, improve ref handling and dropdown collection cleanup Fix: properly handle forwarded refs and fix dropdown collection cleanup logic May 20, 2025
@elenik72 elenik72 self-assigned this May 20, 2025
@elenik72 elenik72 requested review from nnsense91 and slhr May 20, 2025 06:49
@elenik72 elenik72 merged commit 2475206 into master May 20, 2025
4 checks passed
@elenik72 elenik72 deleted the fix/empty-dropdown-ref branch May 20, 2025 06:58
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