Repository navigation
Conversation
…out closing the sheet Escape cancelled the resize but let the key bubble to the Files sheet or attachment dialog, which closed it. The key now stops there, the pointer capture is released, and a held Escape no longer closes the sheet on repeat.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Pressing Esc while dragging a spreadsheet column or row border cancels the resize, but it also closes the whole Files sheet (or the attachment preview dialog). The grid's Escape handler called
preventDefault()but let the key bubble to the sheet's document-level dismiss listener, which does not checkdefaultPrevented. The pointer capture taken for the drag was also never released.The handler now stops the Escape there and releases the pointer capture. Like #41749, a held Escape's repeated keydowns no longer close the sheet either. A fresh Esc after the resize ends still closes it.
Testing
Setup: Linux, Chromium (T3 Browser panel), light theme, 900×700 viewport so the Files panel opens as a sheet, fresh isolated dev data (
vp run dev --no-seed) with a syntheticbudget.xlsxon each commit.Steps: Open Files → open
budget.xlsx→ press on the right edge of the column A header and drag right → press EscOn head, a second Esc closes the sheet.
An AI agent (Claude Opus 5.5, T3 Code) ran:
vp test run apps/web/src/components/files/office/sheet-resize.browser.test.ts: the new test fails on base (the sheet closes on the first Esc) and the file passes 6/6 on head.vp run check:changed: pass.Not shown: the drag is sent as pointer events inside the page, because the Browser panel cannot hold the mouse button while pressing a key; Esc is a real key press.
Generated with Claude Opus 5.5 in T3 Code Nightly