v5.33.0
New Feature
New onSelectItem
callback for Tree, TreePicker, CheckTree and CheckTreePicker
by @SevenOutman in #3172
Tree-ish components now have this onSelectItem(item, path)
callback, which is fired when clicking on a tree item, with two arguments:
item
: The clicked itempath
: The array of items from the root level towards the clicked item
For example, given data
like below:
const data = [
{
value: 'Root',
children: [
{
value: 'Parent',
children: [
{
value: 'Child'
}
]
}
]
}
]
When Child
is clicked, onSelectItem
is fired with Child
and [Root, Parent, Child]
, allowing user to know the hierarchy of the selected item.
Learn more in #3172
Other Changes
Dependency updates
- build(deps): bump yaml and css-minimizer-webpack-plugin in /examples/with-electron by @dependabot in #3171
- [Snyk] Security upgrade postcss-loader from 4.3.0 to 7.1.0 by @snyk-bot in #3170
Full Changelog: v5.32.0...v5.33.0