mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-19 06:58:24 +01:00
Fix editor stale callbacks and recent item deletion
This commit is contained in:
1 parent
51949f4fbf
commit
8b5d7ae3ed
9 files changed
+45
-20
No files matched your search
@@ -267,10 +267,11 @@ function getExtensions({
|
||||
: []),
|
||||
|
||||
// Handle onFocus
|
||||
// NOTE: These *must* be anonymous functions so the references update properly
|
||||
EditorView.domEventHandlers({
|
||||
focus: onFocus.current,
|
||||
blur: onBlur.current,
|
||||
keydown: onKeyDown.current,
|
||||
focus: () => onFocus.current?.(),
|
||||
blur: () => onBlur.current?.(),
|
||||
keydown: e => onKeyDown.current?.(e),
|
||||
}),
|
||||
|
||||
// Handle onChange
|
||||
|
||||
Reference in new issue
Block a user