mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34: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;
|
||||
}
|
||||
|
||||
// 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
|
||||
const focusableEl = event.target.closest(`[data-focusable-id]`);
|
||||
const focusableId = focusableEl ? focusableEl.dataset.focusableId : null;
|
||||
|
|
Loading…
Add table
Reference in a new issue