From 2446c3823fc80abc2b73f86423d997e6bcf8684a Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 29 Mar 2023 11:02:28 -0600 Subject: [PATCH] Et2TabsMobile: Fix double values when submitting. Render was making multiple copies of the sub-template --- api/js/etemplate/Layout/Et2Tabs/Et2TabsMobile.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/api/js/etemplate/Layout/Et2Tabs/Et2TabsMobile.ts b/api/js/etemplate/Layout/Et2Tabs/Et2TabsMobile.ts index 609d205d58..2754fefc2c 100644 --- a/api/js/etemplate/Layout/Et2Tabs/Et2TabsMobile.ts +++ b/api/js/etemplate/Layout/Et2Tabs/Et2TabsMobile.ts @@ -1,7 +1,5 @@ import {Et2Tabs} from "./Et2Tabs"; import {classMap, html, repeat, TemplateResult} from "@lion/core"; -import {et2_createWidget} from "../../et2_core_widget"; -import {et2_template} from "../../et2_widget_template"; import {Et2Details} from "../Et2Details/Et2Details"; import {SlTab, SlTabPanel} from "@shoelace-style/shoelace"; @@ -57,17 +55,6 @@ export class Et2TabsMobile extends Et2Tabs protected tabTemplate(tab, index : number) : TemplateResult { - if(tab.XMLNode) - { - // Just read the XMLNode - let tabContent = this.createElementFromNode(tab.XMLNode); - tabContent.getDOMNode().slot = tab.id; - } - else - { - let template = et2_createWidget('template', tab.widget_options, this); - template.getDOMNode().slot = tab.id; - } return html` `