Skip to content

Commit 47a3fdc

Browse files
authored
Merge pull request #1409 from rumpl/fix-spinners
Forward events to the chat page when dialogs are open
2 parents 20c4a38 + 669ece5 commit 47a3fdc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/tui/tui.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,11 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
396396
if a.dialog.Open() {
397397
u, dialogCmd := a.dialog.Update(msg)
398398
a.dialog = u.(dialog.Manager)
399-
return a, dialogCmd
399+
400+
updated, cmdChatPage := a.chatPage.Update(msg)
401+
a.chatPage = updated.(chat.Page)
402+
403+
return a, tea.Batch(dialogCmd, cmdChatPage)
400404
}
401405

402406
updated, cmdCompletions := a.completions.Update(msg)

0 commit comments

Comments
 (0)