Skip to content

Commit

Permalink
fix(text): update after editing
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Feb 28, 2024
1 parent b425f80 commit a3c1fb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions field_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ func (t *Text) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg := msg.(type) {
case updateValueMsg:
t.textarea.SetValue(string(msg))
t.textarea, cmd = t.textarea.Update(msg)
cmds = append(cmds, cmd)
*t.value = t.textarea.Value()

case tea.KeyMsg:
t.err = nil

Expand Down

0 comments on commit a3c1fb7

Please sign in to comment.