diff --git a/.vscode/settings.json b/.vscode/settings.json
index 1717350..6031593 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,6 @@
{
"cSpell.words": [
+ "borderless",
"Dadido",
"datetime",
"domrender",
@@ -7,6 +8,7 @@
"ldflags",
"Segoe",
"simplehttp",
+ "Sprintf",
"Typer",
"vgrouter",
"Vogel",
diff --git a/components/input/text-area.go b/components/input/text-area.go
index 9ac20dc..e12b1a6 100644
--- a/components/input/text-area.go
+++ b/components/input/text-area.go
@@ -9,12 +9,12 @@ import (
type TextArea struct {
AttrMap vugu.AttrMap
- Bind *string
+ Bind ValueBinder
}
func (c *TextArea) content() string {
if c.Bind != nil {
- return *c.Bind
+ return c.Bind.StringValue()
}
return ""
@@ -24,6 +24,6 @@ func (c *TextArea) handleChange(event vugu.DOMEvent) {
val := event.PropString("target", "value")
if c.Bind != nil {
- *c.Bind = val
+ c.Bind.SetStringValue(val) // TODO: Error is omitted, we should show it
}
}
diff --git a/page-input.vugu b/page-input.vugu
index e108c96..aa21ebb 100644
--- a/page-input.vugu
+++ b/page-input.vugu
@@ -122,7 +122,7 @@