π [Bug]: Canvas API - Multiple event listeners added by clicking on Show canvases button
rnsharma10 opened this issue Β· comments
Ram commented
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:
- Go to Canvas API page
- And check event listner available on drawing canvas element
- Now click on Show Canvases button once and check event listners on drawing canvas element.
- Clicking on same button 5 more times.
Expected behavior
Clicking on Show button multiple times should not create unnecessary more event listeners.
Desktop
- OS: Windows 10
- Browser Chrome
- Version 106
Ram commented
pls assign this to me.