Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activateKey setting focus then scrolling to top dependant on key #863

Closed
mheptinstall opened this issue May 2, 2018 · 1 comment
Closed
Labels

Comments

@mheptinstall
Copy link

I am finding that activateKey is not setting focus correctly depending on the key/node used. It is first setting focus but then scrolling back up to the top of the tree with the active/selected node not in view.

The fiddle below works as expected:
http://jsfiddle.net/op5ga0zf/2/

This fiddle scrolls back up to the top of the tree, the only difference is the key value being used in activateKey:
http://jsfiddle.net/op5ga0zf/3/

I get the same behaviour in all browsers, am I doing something wrong or is this a bug?

@mar10 mar10 added the bug label May 2, 2018
@mar10
Copy link
Owner

mar10 commented May 2, 2018

This could be a bug. Maybe depending on the different nesting of the target node.
(Btw. I had to add jQuery to the includes to make the fiddle work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants