<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Element added twice into DOM in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/custom-element-added-twice-into-dom/m-p/5267182#M4152</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1270303"&gt;@uzair.anwar&lt;/a&gt;&amp;nbsp;it might be better to open a Support Request for this issue with all the details. Would you mind opening one on&amp;nbsp;&lt;A href="https://developer.webex.com/support" target="_blank"&gt;https://developer.webex.com/support&lt;/A&gt;&amp;nbsp;? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 12:53:57 GMT</pubDate>
    <dc:creator>Janos Benyovszki</dc:creator>
    <dc:date>2025-03-04T12:53:57Z</dc:date>
    <item>
      <title>Custom Element added twice into DOM</title>
      <link>https://community.cisco.com/t5/webex-for-developers/custom-element-added-twice-into-dom/m-p/5264848#M4147</link>
      <description>&lt;P&gt;This my desktop layout file,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "version": "0.0.6",
    "appTitle": "Webex Contact Center Desktop",
    "logo": "",
    "dragDropEnabled": false,
    "notificationTimer": 8,
    "maximumNotificationCount": 3,
    "browserNotificationTimer": 8,
    "wxmConfigured": false,
    "area": {
      "header": {
        "id": "dw-header",
        "widgets": {
          "comp1": {
            "comp": "agentx-custom-desktop1",
             "script":"http://localhost:8080/dist/EfCustomWebComponentBundle.js",
              "attributes": {
              "widgetName":"Crm_integration_by_EF",
              "widgetProvider":"Expertflow",
              "outDialAni":"+12068130579",
              "crmLibPath":"./CrmFile/SAP_WebExCC_Integration.js",
              "teamId": "$STORE.agent.teamName",
              "agentName":"$STORE.agent.agentName",
              "selectedTaskDetail":"$STORE.agentContact.taskSelected",
              "agentId":"$STORE.agent.agentId",
              "selectedTask":"$STORE.agentContact.selectedTaskId",
              "organizationID":"&amp;lt;OutDialAniValue&amp;gt;",
              "entryPointId":"57f3a184-a8a9-40af-840d-d45fb4e1ee33",
              "crmDefaultEntityName" : "Accounts",
              "crmEntityNames":"Contacts|Accounts|Leads",
              "isAdvancedScreenpopEnabled" : "false",
              "noMatchEntity":"contact"
              }
          }
        },
        "layout": {
          "areas": [["comp1"]],
          "size": { "cols": [1], "rows": [1] }
        }
      },
      "panel": {
        "comp": "md-tabs",
        "attributes": { "class": "widget-tabs" },
        "children": [
          {
            "comp": "md-tab",
            "attributes": { "slot": "tab", "class": "widget-pane-tab" },
            "children": [
              { "comp": "slot", "attributes": { "name": "IVR_TRANSCRIPT_TAB" } }
            ],
            "visibility": "IVR_TRANSCRIPT"
          },
          {
            "comp": "md-tab-panel",
            "attributes": { "slot": "panel", "class": "widget-pane" },
            "children": [
              { "comp": "slot", "attributes": { "name": "IVR_TRANSCRIPT" } }
            ],
            "visibility": "IVR_TRANSCRIPT"
          },
          {
            "comp": "md-tab",
            "attributes": { "slot": "tab" },
            "children": [
              { "comp": "slot", "attributes": { "name": "WXM_JOURNEY_TAB" } }
            ],
            "visibility": "WXM_JOURNEY"
          },
          {
            "comp": "md-tab-panel",
            "attributes": { "slot": "panel", "class": "widget-pane" },
            "children": [
              {
                "comp": "agentx-wc-cloudcherry-widget",
                "properties": {
                  "userModel": "$STORE.app.userModel",
                  "spaceId": "",
                  "metricsId": "",
                  "teamId": "$STORE.agent.teamName",
                  "ani": "$STORE.agentContact.taskSelected.ani",
                  "isDarkMode": "$STORE.app.darkMode"
                },
                "wrapper": {
                  "title": "Customer Experience Journey",
                  "maximizeAreaName": "app-maximize-area"
                }
              }
            ],
            "visibility": "WXM_JOURNEY"
          },
          {
            "comp": "md-tab",
            "attributes": { "slot": "tab", "class": "widget-pane-tab" },
            "children": [
              { "comp": "slot", "attributes": { "name": "CONTACT_HISTORY_TAB" } }
            ]
          },
          {
            "comp": "md-tab-panel",
            "attributes": { "slot": "panel", "class": "widget-pane" },
            "children": [
              { "comp": "slot", "attributes": { "name": "CONTACT_HISTORY" } }
            ]
          },
          {
            "comp": "md-tab",
            "attributes": { "slot": "tab", "class": "widget-pane-tab" },
            "children": [
              { "comp": "slot", "attributes": { "name": "SCREEN_POP_TAB" } }
            ],
            "visibility": "SCREEN_POP"
          },
          {
            "comp": "md-tab-panel",
            "attributes": { "slot": "panel", "class": "widget-pane" },
            "children": [
              { "comp": "slot", "attributes": { "name": "SCREEN_POP" } }
            ],
            "visibility": "SCREEN_POP"
          }
        ]
      },
      "navigation": [
        {
          "nav": {
            "label": "Customer Experience Analytics",
            "icon": "/app/images/wxm.bcd45cc3.svg",
            "iconType": "other",
            "navigateTo": "wxm-metrics",
            "align": "top"
          },
          "page": {
            "id": "wxm-metrics",
            "widgets": {
              "comp1": {
                "comp": "agentx-wc-cloudcherry-widget",
                "attributes": {
                  "metrics": true
                },
                "properties": {
                  "userModel": "$STORE.app.userModel",
                  "spaceId": "",
                  "metricsId": "",
                  "teamId": "$STORE.agent.teamName",
                  "isDarkMode": "$STORE.app.darkMode"
                }
              }
            },
            "layout": {
              "areas": [["comp1"]],
              "size": {
                "cols": [1],
                "rows": [1]
              }
            }
          },
          "visibility": "WXM_METRICS"
        }
      ]
    }
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I noticed that my custom component is being added twice in the DOM.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (11).png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/240552i78C759FAFCA6ED8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (11).png" alt="Screenshot (11).png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As a result:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The &lt;CODE&gt;connectedCallback&lt;/CODE&gt; method of my custom component is triggered twice.&lt;/LI&gt;
&lt;LI&gt;The &lt;CODE&gt;attributeChangedCallback&lt;/CODE&gt; method is also called multiple times.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I want to understand why this is happening and why my custom component is being added twice in the DOM.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 21:37:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/custom-element-added-twice-into-dom/m-p/5264848#M4147</guid>
      <dc:creator>uzair.anwar</dc:creator>
      <dc:date>2025-02-25T21:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Element added twice into DOM</title>
      <link>https://community.cisco.com/t5/webex-for-developers/custom-element-added-twice-into-dom/m-p/5267182#M4152</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1270303"&gt;@uzair.anwar&lt;/a&gt;&amp;nbsp;it might be better to open a Support Request for this issue with all the details. Would you mind opening one on&amp;nbsp;&lt;A href="https://developer.webex.com/support" target="_blank"&gt;https://developer.webex.com/support&lt;/A&gt;&amp;nbsp;? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 12:53:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/custom-element-added-twice-into-dom/m-p/5267182#M4152</guid>
      <dc:creator>Janos Benyovszki</dc:creator>
      <dc:date>2025-03-04T12:53:57Z</dc:date>
    </item>
  </channel>
</rss>

