Remove z-index DOM sort to prevent click events being dropped on focus

Fixkamo-internal
Shipped
March 11, 2026 at 8:16 PM UTC
Author
kamo
Commit
2e7f17d

Sorting windows by zIndex in ToolDock caused DOM node reordering on every focus event (mousedown). Browsers drop the click event when its target element moves between mousedown and mouseup, requiring a second click to activate buttons. CSS z-index handles visual stacking without DOM reordering.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing