mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 12:34:33 +01:00
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 =>
|
||||
{
|
||||
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