Down arrow press on draggable Tree #7617
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a bug.
Current behavior
When using a tree with drag/drop, the down key does not focus the children nodes but instead focus the next sibling node.
Expected behavior
The down key should focus the children nodes if they are present. This behavior occurs when the tree does not have drag/drop feature activated.
Minimal reproduction of the problem with instructions
Using the primeng tree compoment documentation the issue is reproducable.
https://www.primefaces.org/primeng/#/tree
Down keypress on first example tree works ok (when focusing a parent node and pressing down, the first child is focused).
DragDrop key does not work ok. (when focusing a parent node and pressing down, the next sibling is focused).
I think this is an easy fix.
According to the onKeyDown function the code that handles the down arrow (40) does not check the droppableNodes property.
The text was updated successfully, but these errors were encountered: