Skip to content

Commit

Permalink
Prevent scrolling tree.$container into view. (#1019)
Browse files Browse the repository at this point in the history
Right on time ;-)
  • Loading branch information
ewya authored Jul 14, 2020
1 parent 08f2dfb commit f305e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 2.35.1-0 / Unreleased
* [Fixed] #921 ext-edit / focus handling: Internet Explorer scrolls briefly
to the top/left after editing if the tree container is partially outside the viewport
* [Fixed] #1001 Invalid urls in skin-xp CSS
* [Fixed] ext-dnd5: dropEffectCallback=none was not reset in some cases
* [Changed] #1005 Cast key to string in getNodeByKey()
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.fancytree.edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
}

// Set keyboard focus, even if setFocus() claims 'nothing to do'
$(tree.$container).focus();
$(tree.$container).focus({ preventScroll: true });
eventData.input = null;
instOpts.close.call(node, { type: "close" }, eventData);
return true;
Expand Down

0 comments on commit f305e8a

Please # to comment.