diff --git a/edit.go b/edit.go index 2d6ee7d..581dfe2 100644 --- a/edit.go +++ b/edit.go @@ -34,6 +34,10 @@ func (e *EditField) setTitleInternal(title string) { e.onChange(ev) } } + + if title == "" { + e.cursorPos = xs.Len(title) + } } // Repaint draws the control on its View surface