summaryrefslogtreecommitdiff
path: root/setText.go
diff options
context:
space:
mode:
Diffstat (limited to 'setText.go')
-rw-r--r--setText.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/setText.go b/setText.go
index 6194351..a3f7de9 100644
--- a/setText.go
+++ b/setText.go
@@ -51,8 +51,15 @@ func (n *Node) SetText(text string) *Node {
n.label = text
case widget.Combobox:
n.newString = text
+ n.currentS = text
+ n.defaultS = text
case widget.Dropdown:
n.newString = text
+ n.currentS = text
+ n.defaultS = text
+ case widget.Textbox:
+ n.currentS = text
+ n.defaultS = text
case widget.Window:
n.label = text
default: