Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch(ButtonApi): patched ".on()" method with missing key property #634

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

Chlebamaticon
Copy link

@Chlebamaticon Chlebamaticon commented Nov 12, 2024

Problem

ButtonApi does not implement correctly Emitter model since it does wrap handler with arrow function without setting handler key (packages/core/src/blade/api/button.ts). Therefore, using the same handler within .off method to unregister listener basically does not work since reference does not exist - as presented here.

@cocopon
Copy link
Owner

cocopon commented Nov 13, 2024

Thank you for your contribution. Could you resolve a formatting issue by running npm run format?

@Chlebamaticon
Copy link
Author

Thank you for your contribution. Could you resolve a formatting issue by running npm run format?

Of course, just did it now and pushed commit.

cocopon added a commit that referenced this pull request Nov 13, 2024
@cocopon cocopon merged commit f44856c into cocopon:main Nov 13, 2024
1 check passed
@cocopon
Copy link
Owner

cocopon commented Nov 13, 2024

Merged, please wait for the next release.

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