Skip to content

Conversation

jamiebuilds-signal
Copy link

Summary

I was running into issues using this library within a single page app where I wasn't able to cleanup the event listeners and could end up with multiple instances of restricted-input trying to manage the same input element.

This adds a new method destroy() to each of the strategies that will remove all of the event listeners it creates.

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

Reviewers

@braintree/team-sdk-js

@jamiebuilds-signal jamiebuilds-signal requested a review from a team as a code owner July 3, 2025 16:27
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.

1 participant