diff --git a/packages/super-components/components/msc-billing-tile/src/msc-billing-tile/msc-billing-tile.tsx b/packages/super-components/components/msc-billing-tile/src/msc-billing-tile/msc-billing-tile.tsx index 2a4dc33ed95a..b8bf4ab7f808 100644 --- a/packages/super-components/components/msc-billing-tile/src/msc-billing-tile/msc-billing-tile.tsx +++ b/packages/super-components/components/msc-billing-tile/src/msc-billing-tile/msc-billing-tile.tsx @@ -6,7 +6,6 @@ import { Host, State, Fragment, - Listen, } from '@stencil/core'; import { OdsThemeColorIntent, @@ -85,13 +84,7 @@ export class MscBillingTile implements IMscBillingTile { @State() showTooltip = false; // will be removed with ODS-MENU - @Listen('click') // will be removed with ODS-MENU - handleDocumentClick(event: Event) { - const tooltipEl = this.host.shadowRoot?.querySelector('.menu-button'); - if (tooltipEl && !tooltipEl.contains(event.target as Node)) { - this.showTooltip = !this.showTooltip; - } - } + @State() showTooltipContact = false; // will be removed with ODS-MENU handleTooltipToggle(event: Event) { // will be removed with ODS-MENU @@ -99,6 +92,12 @@ export class MscBillingTile implements IMscBillingTile { this.showTooltip = !this.showTooltip; } + handleTooltipToggleContact(event: Event) { + // will be removed with ODS-MENU + event.stopPropagation(); + this.showTooltipContact = !this.showTooltipContact; + } + private i18nInstance: i18n; componentWillLoad() { @@ -146,7 +145,6 @@ export class MscBillingTile implements IMscBillingTile { .get(`${this.servicePath}/serviceInfos`) .then((response) => { const { data } = response; - console.log(`${this.servicePath}/serviceInfos`, data); this.contactAdmin = data.contactAdmin; this.contactBilling = data.contactBilling; this.contactTech = data.contactTech; @@ -372,8 +370,9 @@ export class MscBillingTile implements IMscBillingTile { return ( <>