mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
Merge remote-tracking branch 'origin/dev' into test-main-dev-merge-20260615
# Conflicts: # src/tool_implementations.py # static/js/research/panel.js
This commit is contained in:
@@ -524,6 +524,8 @@ function _buildBuiltinCards() {
|
||||
|
||||
card.addEventListener('click', (e) => {
|
||||
if (e.target.closest('button, input, textarea')) return;
|
||||
// Editing in progress → don't collapse on an outside-the-textarea click.
|
||||
if (card.querySelector('.skill-md-editor')) return;
|
||||
_expandBuiltinCard(card, b.name);
|
||||
});
|
||||
return card;
|
||||
@@ -796,6 +798,10 @@ function renderSkillsList() {
|
||||
card.addEventListener('click', (e) => {
|
||||
if (card._suppressNextClick) { card._suppressNextClick = false; return; }
|
||||
if (e.target.closest('button, input, textarea')) return;
|
||||
// While editing, a click on the card body (outside the textarea) must
|
||||
// NOT collapse the card — that silently discards unsaved edits. Only
|
||||
// Save/Cancel exit edit mode.
|
||||
if (card.querySelector('.skill-md-editor')) return;
|
||||
if (_selectMode) {
|
||||
const cb = card.querySelector('.skill-select-cb');
|
||||
if (cb) { cb.checked = !cb.checked; cb.dispatchEvent(new Event('change')); }
|
||||
|
||||
Reference in New Issue
Block a user