fix select-boxes submit their old value, if they are onchange="1"

@Nathan: Not sure if this is the right fix, but I can't see where we use Lit's FormatMixing, which defines serializedValue (and therefore select-box always returns the old modalValue)
This commit is contained in:
ralf
2022-02-21 20:58:56 +02:00
parent d23c8cbcb4
commit c2166c5750
4 changed files with 4 additions and 32 deletions

View File

@ -45,16 +45,7 @@ export class Et2Textbox extends Et2InputWidget(LionInput)
{
super.connectedCallback();
}
getValue()
{
if(this.readOnly)
{
return null;
}
return this.value;
}
}
// @ts-ignore TypeScript is not recognizing that Et2Textbox is a LitElement
customElements.define("et2-textbox", Et2Textbox);
customElements.define("et2-textbox", Et2Textbox);