Custom Elements, event listener and this
01 Feb 2021
I use Custom Elements a lot. I also like to use .bind(this) in Custom Element event listeners for several reasons. Why this can be a problem if the event listener needs to be removed and how a workaround could look like, i will explain in this post.