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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [Bug]: Canvas API - Multiple event listeners added by clicking on Show canvases button #175

Open
rnsharma10 opened this issue Oct 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@rnsharma10
Copy link

Describe the bug
Canvas Api bug -

  • Clicking on Show Canvases button creates duplicate event listners.
  • The code written on Show Canvases does not remove the event listners already created, and adds another ones which will result in same events applied multiple times and crashing the page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Canvas API page
  2. And check event listner available on drawing canvas element
    image
  3. Now click on Show Canvases button once and check event listners on drawing canvas element.
    image
  4. Clicking on same button 5 more times.
    image

Expected behavior
Clicking on Show button multiple times should not create unnecessary more event listeners.

Desktop

  • OS: Windows 10
  • Browser Chrome
  • Version 106
@rnsharma10 rnsharma10 added the bug Something isn't working label Oct 13, 2022
@rnsharma10
Copy link
Author

pls assign this to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant