Describe the bug
I'm using a custom web component called my-tooltip and there's a boolean attribute called only-when-overflow.When using the only-when-overflow attribute i'm getting the below error.
Uncaught Error: Component's "only-when-overflow" property should be a function, but got [boolean] instead
<my-tooltip only-when-overflow="true" for="a1a1">..</my-tooltip>
To Reproduce
We usually use a attribute which starts with on to handle events eg: onClick, onKeyPress which requires function. Here I'm using a boolean attribute which starts with on and the error thrown
Describe the bug
I'm using a custom web component called
my-tooltipand there's a boolean attribute calledonly-when-overflow.When using theonly-when-overflowattribute i'm getting the below error.To Reproduce
We usually use a attribute which starts with
onto handle events eg:onClick, onKeyPresswhich requires function. Here I'm using a boolean attribute which starts withonand the error thrown