Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DirectoryTree keyboard error (ant-design#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
- Loading branch information