fix(canvas): remove duplicate settings/history button handlers
Canvas.html had its own addEventListener calls for settings-btn and history-btn, but the shell script already wires these. Both handlers fired on click, causing double-toggle (open then immediately close). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
355b53ee17
commit
d5e822ec7c
|
|
@ -5639,15 +5639,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// ── Settings + History panel toggles ──
|
// Settings + History panel toggles are wired by the shell script —
|
||||||
document.getElementById('settings-btn')?.addEventListener('click', () => {
|
// do NOT duplicate here or double-toggle cancels the action.
|
||||||
const panel = document.querySelector('rstack-space-settings');
|
|
||||||
if (panel) panel.toggle();
|
|
||||||
});
|
|
||||||
document.getElementById('history-btn')?.addEventListener('click', () => {
|
|
||||||
const panel = document.querySelector('rstack-history-panel');
|
|
||||||
if (panel) panel.toggle();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Memory panel — browse and remember forgotten shapes
|
// Memory panel — browse and remember forgotten shapes
|
||||||
const memoryPanel = document.getElementById("memory-panel");
|
const memoryPanel = document.getElementById("memory-panel");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue