Home > OS >  Why can't I call custom component's methods in chrome?
Why can't I call custom component's methods in chrome?

Time:02-25

so I developed and tested the whole project using Firefox and everything was just fine but when I tried to run it in Chrome, the browser kept saying that my custom components methods don't exist. Why is that? From what I know, Chrome supports Web Components.

enter image description here

CodePudding user response:

I found the issue. I've changed the class my components were deriving from (from HTMLDivElement to HTMLElement) and removed the { extends: 'div' } option from their definition and everything started to work!

  • Related