Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 706ee78

Browse files
committed
Check filename header clicks in the right context.
1 parent 4a840ec commit 706ee78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/editor/MultiRangeInlineEditor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ define(function (require, exports, module) {
506506
}
507507

508508
// Ignore clicks in editor and clicks on filename link
509-
if (!containsClick($(editorRoot)) && !containsClick($(".filename", this.$editorHolder))) {
509+
// Check clicks on filename link in the context of the parent node of $editorHolder.
510+
if (!containsClick($(editorRoot)) && !containsClick($(".filename", this.$editorHolder.parent()))) {
510511
childEditor.focus();
511512
// Only set the cursor if the click isn't in the range list.
512513
if (!containsClick(this.$relatedContainer)) {

0 commit comments

Comments
 (0)