mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
fix(live): Escape in PICKING also resets the global bar's Pick button
Previously Escape while picking just hid the highlight and set state to IDLE, leaving the global bar's Pick button visually active. Next pick attempt fell into a broken state where the button looked on but no picker ran. Route through togglePick() so the flag, the button, the UI, and the state all flip together. Small copy fix on Why panel 04: Figma stamp now reads "last touched Q3 2025" (was 2024; should reflect closer to the current calendar).
This commit is contained in:
@@ -1747,7 +1747,13 @@
|
||||
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
|
||||
if (state === 'CYCLING') { handleDiscard(); return; }
|
||||
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
|
||||
if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
|
||||
if (state === 'PICKING') {
|
||||
// Use togglePick so the "Pick" button in the global bar also flips
|
||||
// off, otherwise the bar stays lit while nothing else is active.
|
||||
if (pickActive) togglePick();
|
||||
else { hideHighlight(); state = 'IDLE'; }
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)
|
||||
|
||||
Reference in New Issue
Block a user