summaryrefslogtreecommitdiff
path: root/input/string.ts
diff options
context:
space:
mode:
Diffstat (limited to 'input/string.ts')
-rw-r--r--input/string.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/input/string.ts b/input/string.ts
index 1faa3cb..84e7539 100644
--- a/input/string.ts
+++ b/input/string.ts
@@ -104,7 +104,6 @@ export class WuiInputString {
}
if (this.opts.onChangeHandler) {
- console.log("register onchange")
this.el_input.onkeyup = (ev: Event) => {
if (this.opts.onChangeHandler) {
if (
@@ -158,4 +157,9 @@ export class WuiInputString {
this.el_hint.style.display = "none"
}
}
+
+ // Set the input value.
+ Set(v: string) {
+ this.el_input.value = v
+ }
}