mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
fix: Selection passed to setSelection must point at the current document, triple clicking caption
This commit is contained in:
1 parent
21d446881e
commit
098d91808b
1 file changed
+3
-1
@@ -136,9 +136,11 @@ export default class SimpleImage extends Node {
|
||||
};
|
||||
|
||||
handleMouseDown = (ev: React.MouseEvent<HTMLParagraphElement>) => {
|
||||
// always prevent clicks in caption from bubbling to the editor
|
||||
ev.stopPropagation();
|
||||
|
||||
if (document.activeElement !== ev.currentTarget) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
ev.currentTarget.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user