Skip to content

Commit

Permalink
Fixed problem improperly refreshing edit controls
Browse files Browse the repository at this point in the history
Thanks to pmario for pointing out the problem
  • Loading branch information
Jeremy Ruston committed May 1, 2012
1 parent e9996b7 commit 12bf2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rabbithole/core/modules/macros/edit/editors/texteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12bf2b6

Please sign in to comment.