mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 14:45:36 +00:00
PrimeVue auto-increments a per-key z-index counter, so later-opened
PrimeVue dialogs reliably cover earlier ones. Reka, however, uses a
static z-1700 class — which lost to any PrimeVue modal already on the
counter. Concretely: open Save As (PrimeVue, z-1801) then trigger the
Overwrite confirm (Reka, z-1700) and the confirm rendered behind Save
As's mask, so Playwright clicks on the Overwrite button were absorbed
by .p-dialog-mask.
Register every Reka DialogOverlay + DialogContent with PrimeVue's
ZIndex.set('modal', el, 1700) on mount via a v-reka-z-index directive,
and ZIndex.clear on unmount. Both renderers now share one stacking
sequence — whichever dialog opened last wins, regardless of which
library owns it.