ant-design/components/tree
D-to-the-K 0a8065e5bd
fix: DirectoryTree keyboard error (#32551)
* Fix bug in keyboard navigation

When selecting a node using the keyboard (spacebar), the event received by onSelect has an undefined MouseEvent. Keyboard navigation was not possible because an error was thrown when trying to access properties from the undefined nativeEvent. We are now testing if nativeEvent is defined before accessing its properties.

* fix: DirectoryTree throws error during keyboard navigation
2021-10-19 13:05:17 +08:00
..
__tests__ feat: Tree support draggable handler (#32306) 2021-09-27 15:54:06 +08:00
demo test: fix eslint errors (#31961) 2021-08-30 13:04:21 +08:00
style chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 (#32451) 2021-10-13 15:38:59 +08:00
utils fix(Tree): fix tree drop indicator default direction (#28150) 2020-12-02 22:12:32 +08:00
DirectoryTree.tsx fix: DirectoryTree keyboard error (#32551) 2021-10-19 13:05:17 +08:00
index.en-US.md feat: Tree support draggable handler (#32306) 2021-09-27 15:54:06 +08:00
index.tsx chore: export EventDataNode from rc-tree (#25142) 2020-06-24 11:37:28 +08:00
index.zh-CN.md feat: Tree support draggable handler (#32306) 2021-09-27 15:54:06 +08:00
Tree.tsx feat: Tree support draggable handler (#32306) 2021-09-27 15:54:06 +08:00