Skip to content

Commit 2cb9c81

Browse files
committed
fix(input): focus text input in constructor for bubbletea v2
1 parent dbdfbe1 commit 2cb9c81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/input/input.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func newTextModel(varName string) textModel {
9898
ti.Placeholder = ""
9999
ti.CharLimit = 256
100100
ti.SetWidth(40)
101+
ti.Focus()
101102

102103
return textModel{
103104
varName: varName,

0 commit comments

Comments
 (0)