Skip to content

Commit 669ece5

Browse files
committed
Forward events to the chat page when dialogs are open
Fixes #1370 Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent da741b0 commit 669ece5

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)