Type: New Feature
Affects Version/s: 8.0.3
Fix Version/s: 8.5.2
Security Level: Jimmy
- load the attached zul
- type ch in the textbox
ZK moves the focus to Tree, so that users can't continue his typing
- when opening a treeitem, treeitem's setopen() enforce moving focus on its parent tree.
we can consider not moving the focus.
- Maybe there is another use case that requires getting focus while opening, e.g. a user opens a treeitem by mouse clicking instead of API. Then we can differentiate 2 cases with fromServer flag.
- moving focus is a general issue that we will face when implementing every widget. We should collect use cases and conclude a design rule
- it's better to focus a tree in doClick (click event handler) instead of setOpen()