mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 01:50:28 +00:00
Fixed problem improperly refreshing edit controls
Thanks to pmario for pointing out the problem
This commit is contained in:
parent
e9996b7fe4
commit
12bf2b6fb9
@ -96,7 +96,7 @@ TextEditor.prototype.postRenderInDom = function() {
|
||||
|
||||
TextEditor.prototype.isRefreshable = function() {
|
||||
// Don't refresh the editor if it contains the caret or selection
|
||||
return !window.getSelection().containsNode(this.macroNode.domNode, true);
|
||||
return document.activeElement !== this.macroNode.children[0].domNode;
|
||||
};
|
||||
|
||||
exports["text/x-tiddlywiki"] = TextEditor;
|
||||
|
Loading…
Reference in New Issue
Block a user