forked from extern/egroupware
Fix numeric validator on a Et2Number would not pass
This commit is contained in:
parent
13e7ff97b6
commit
5c8fb1eb2e
@ -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];
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user