mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix numeric validator on a Et2Number would not pass
This commit is contained in:
parent
5ebad31675
commit
e7f10c711c
@ -535,7 +535,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
||||
|
||||
validators.map(async validator =>
|
||||
{
|
||||
let values = this.value;
|
||||
let values = this.getValue();
|
||||
if(!Array.isArray(values))
|
||||
{
|
||||
values = [values];
|
||||
|
@ -101,7 +101,7 @@ export class Et2Number extends Et2Textbox
|
||||
val = parseFloat(val);
|
||||
}
|
||||
}
|
||||
return val;
|
||||
return val + "";
|
||||
}
|
||||
}
|
||||
// @ts-ignore TypeScript is not recognizing that Et2Textbox is a LitElement
|
||||
|
Loading…
Reference in New Issue
Block a user