Hi,
My app uses React + Redux and am using the React version of this EJ2 control.
I've confirmed that the TreeViewComponent and the Redux action, setExplorerSelectedId, work fine separately. However, when I link the Redux action to the TreeViewComponent's nodeClicked event, or any other event for that matter, I start to experience weird behaviors. For example, when I link the action to the nodeClicked event (see code below), I no longer can expand any tree nodes. Another example is if I link the action the nodeSelected event instead, I can expand the nodes, but as soon as I click on any of the nodes, all branches collapse immediately.
I've also confirmed that using another Tree component such as this, https://github.com/react-component/tree, does not exhibit the same behavior.
Please advise.
render() {
const { setExplorerSelectedId } = this.props.actions;
return (
<div className="app">
<TreeViewComponent fields={this.fields} nodeClicked={setExplorerSelectedId}></TreeViewComponent>
</div>
);
}