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

Commit ecc9ab3

Browse files
committed
Merge pull request #5746 from adobe/rlim/hints-issue-5740
Check filename header clicks in the right context.
2 parents 4a840ec + 3b3e02a commit ecc9ab3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/editor/MultiRangeInlineEditor.js

Lines changed: 2 additions & 1 deletion
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 current inline widget.
510+
if (!containsClick($(editorRoot)) && !containsClick($(".filename", this.$htmlContent))) {
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)