mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-10 05:25:57 +08:00
Fix cell insertion while editing Markdown cell (#883)
This commit is contained in:
parent
4ba81cc114
commit
0b1f308b13
1 changed files with 5 additions and 0 deletions
|
@ -446,6 +446,11 @@ function handleDocumentMouseDown(hook, event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// When clicking an insert button, keep focus and insert mode as is
|
||||||
|
if (event.target.closest(`[data-element="insert-buttons"] button`)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Find the focusable element, if one was clicked
|
// Find the focusable element, if one was clicked
|
||||||
const focusableEl = event.target.closest(`[data-focusable-id]`);
|
const focusableEl = event.target.closest(`[data-focusable-id]`);
|
||||||
const focusableId = focusableEl ? focusableEl.dataset.focusableId : null;
|
const focusableId = focusableEl ? focusableEl.dataset.focusableId : null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue