on main help sign in
fix: ignore mouse clicks when `isProjectInit` is active (#1561)
da5c283Gustave-241021
internal/tui/page/chat/chat.go+2−2
@@ -181,7 +181,7 @@ func (p *chatPage) Update(msg tea.Msg) (util.Model, tea.Cmd) {
181 }
181 }
182 return p, nil
182 return p, nil
183 case tea.MouseClickMsg:
183 case tea.MouseClickMsg:
184− if p.isOnboarding {
184+ if p.isOnboarding || p.isProjectInit {
185 return p, nil
185 return p, nil
186 }
186 }
187 if p.compact {
187 if p.compact {
@@ -210,7 +210,7 @@ func (p *chatPage) Update(msg tea.Msg) (util.Model, tea.Cmd) {
210 }
210 }
211 return p, nil
211 return p, nil
212 case tea.MouseReleaseMsg:
212 case tea.MouseReleaseMsg:
213− if p.isOnboarding {
213+ if p.isOnboarding || p.isProjectInit {
214 return p, nil
214 return p, nil
215 }
215 }
216 if p.compact {
216 if p.compact {