You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to attach an OverlayPanel to a tl-input: Stackblitz
The panel does open, but it appears to be attached to the body element instead of the tl-input.
When attaching it to a tl-button as per your docs, it does work (see commented code in the html). Even then though, there seems to be something wrong with the panel, it has no background color.
The text was updated successfully, but these errors were encountered:
Sorry for the docs, we are implementing a new one and updating them, the [color] property doesn't exist anymore on TlOverlayPanel. To do this you just style your wrapper div to your wished color.
The OverlayPanel uses overlay of angular/cdk so we have get an ElementRef to attach. When you hastag a component inside of HTML, angular pass the instance of that component. As a workaround to that, you can do this:
I'm trying to attach an OverlayPanel to a
tl-input
: StackblitzThe panel does open, but it appears to be attached to the body element instead of the tl-input.
When attaching it to a
tl-button
as per your docs, it does work (see commented code in the html). Even then though, there seems to be something wrong with the panel, it has no background color.The text was updated successfully, but these errors were encountered: