Fix numeric validator on a Et2Number would not pass

This commit is contained in:
nathan 2023-03-08 13:28:04 -07:00
parent 13e7ff97b6
commit 5c8fb1eb2e
2 changed files with 2 additions and 2 deletions

View File

@ -535,7 +535,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
validators.map(async validator => validators.map(async validator =>
{ {
let values = this.value; let values = this.getValue();
if(!Array.isArray(values)) if(!Array.isArray(values))
{ {
values = [values]; values = [values];

View File

@ -101,7 +101,7 @@ export class Et2Number extends Et2Textbox
val = parseFloat(val); val = parseFloat(val);
} }
} }
return val; return val + "";
} }
} }
// @ts-ignore TypeScript is not recognizing that Et2Textbox is a LitElement // @ts-ignore TypeScript is not recognizing that Et2Textbox is a LitElement