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

Tree View Examples: Fix Incorrect Left Arrow Behavior #365

Closed
mcking65 opened this issue Apr 20, 2017 · 8 comments
Closed

Tree View Examples: Fix Incorrect Left Arrow Behavior #365

mcking65 opened this issue Apr 20, 2017 · 8 comments
Assignees
Labels
bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern

Comments

@mcking65
Copy link
Contributor

mcking65 commented Apr 20, 2017

In all four treeview examples, if focus is on a child node and left arrow is pressed, focus moves to the parent and the parent node is closed. In this circumstance, the focus should move but the parent node should remain open. A parent node should close only if focus is on the parent node when left arrow is pressed.

@jongund
Copy link
Contributor

jongund commented Apr 24, 2017

I made a pull request this morning that I believe fixed the bug with left arrow key collapsing the leaf when not on an expandable treeitem.

mcking65 pushed a commit that referenced this issue Apr 24, 2017
1. For issues #364 and #367, fix modifier key behavior.  When a modifier key is pressed, the key press is ignored. One defect remains with modifiers: if shift is the only modifier pressed in combination with a printable char, the key press should not be ignored.
2. To fix issue #365, changed left arrow behavior so a branch is not collapsed when navigating from a child node to a parent node.
3. Fixed a formatting bug.
@mcking65
Copy link
Contributor Author

@jongund, this bug is indeed fixed with pull #374. Many thanks!!

@mcking65
Copy link
Contributor Author

@jongund, Oops, this issue is not quite resolved.

If the focus is on a level two or deeper parent node that is closed, pressing left arrow moves to the parent of the parent node and closes the branch. For example, in the
file viewer tree,
navigate to reports, expand with right, move down to the first child (reports-1), then press left arrow. Focus moves to the reports parent, like it should. However, the reports branch also closes, which it should not.

@jongund
Copy link
Contributor

jongund commented Apr 26, 2017 via email

@mcking65
Copy link
Contributor Author

@jongund, the problem only occurs if the focus is on a level 2 or greater parent node that is closed as I described above. In the structures we have in the examples, this condition only exists for the immediate children of the reports and letters branches in the file viewer trees.

@jongund
Copy link
Contributor

jongund commented Apr 27, 2017 via email

@jongund
Copy link
Contributor

jongund commented Apr 27, 2017 via email

mcking65 pushed a commit that referenced this issue Apr 27, 2017
1. For issue #365, fixed bug where left arrow collapsed a branch when navigating from a child parent node to its parent.
2. For issue #386, deleted unused file treeitemClick.js
@mcking65
Copy link
Contributor Author

@jongund, thank you!! this is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Code defects; not for inaccurate prose Example Page Related to a page containing an example implementation of a pattern
Projects
None yet
Development

No branches or pull requests

2 participants