2
0
mirror of https://github.com/esiur/iui.git synced 2026-04-04 06:58:22 +00:00
This commit is contained in:
2021-12-18 16:25:51 +03:00
parent e52b89fb4d
commit f57c1b4bc5
9 changed files with 832 additions and 496 deletions

View File

@@ -150,6 +150,9 @@ export default IUI.module(class Input extends IUIElement {
this._input.value = value != null ? value.toISOString().slice(0, 10) : value;
else if (this.type == null || this.type == "text" || this.type == "search" || this.type == "password")
this._input.value = value == null ? '' : value;
else if (this.type == "file") {
// can't set value on file input
}
else
this._input.value = value;
@@ -163,7 +166,7 @@ export default IUI.module(class Input extends IUIElement {
this.value = value[this.field];
else if (this.field != null)
this.value = null;
*/
*/
}