From 93a9ac30917ad9c5f4b765d32a6f08c191a8c57c Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 31 Mar 2023 11:10:33 -0600 Subject: [PATCH] Et2Select: Missed changes in backports --- api/js/etemplate/Et2Select/Et2Select.ts | 39 ------------------------- 1 file changed, 39 deletions(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index c7b725e151..04c8b15fd2 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -938,45 +938,6 @@ export class Et2SelectDayOfWeek extends Et2StaticSelectMixin(Et2Select) super.value = expanded_value; } - get value() - { - return super.value; - super.connectedCallback(); - - // Wait for connected instead of constructor because attributes make a difference in - // which options are offered - this.fetchComplete = so.dow(this, {other: this.other || []}).then(options => - { - this.set_static_options(cleanSelectOptions(options)); - }); - } - - set value(new_value) - { - let expanded_value = typeof new_value == "object" ? new_value : []; - if(new_value && (typeof new_value == "string" || typeof new_value == "number")) - { - let int_value = parseInt(new_value); - this.updateComplete.then(() => - { - this.fetchComplete.then(() => - { - let options = this.select_options; - for(let index in options) - { - let right = parseInt(options[index].value); - if(!!(int_value & right)) - { - expanded_value.push("" + right); - } - } - super.value = expanded_value; - }) - }); - return; - } - super.value = expanded_value; - } get value() { return super.value;