فهرست منبع

fix(tui): preserve modal focus across dialog replacement (#36656)

Co-authored-by: Simon Klee <52795+simonklee@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
opencode-agent[bot] 1 ماه پیش
والد
کامیت
339fd50cb9
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      packages/tui/src/ui/dialog.tsx

+ 1 - 0
packages/tui/src/ui/dialog.tsx

@@ -90,6 +90,7 @@ function init() {
   let focus: Renderable | null
   function refocus() {
     setTimeout(() => {
+      if (store.stack.length > 0) return
       if (!focus) return
       if (focus.isDestroyed) return
       function find(item: Renderable) {