atapas / webapis-playground

The Web APIs Playground is a project to showcase the JavaScript Web APIs with examples and demonstrations. Client-side JavaScript APIs are here to help with providing wrapper functions for many low-level tasks.
https://webapis-playground.vercel.app/
MIT License
299 stars 73 forks source link

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

Open rnsharma10 opened 2 years ago

rnsharma10 commented 2 years ago

Describe the bug Canvas Api bug -

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

rnsharma10 commented 2 years ago

pls assign this to me.