I have created a layout template with a responsive sidebar per the Blazor Sidebar With Responsive Example. Instead of all of the lorem ipsom stuff in <div class="sidebar-content"> I have @Body. The first time a node is clicked the
SelectedNodesChanged callback is called once as expected. Every subsequent time I select a node it will call the SelectedNodesChanged twice - once for the node I just selected and a second time for the first selected node.
For example: If the first node I select is node #3
SelectedNodesChanged will be called with argument #3. If I then select #5
SelectedNodesChanged will get called for #5 and then #3. If I select #3 again it will only call
SelectedNodesChanged once for #3. Each time
SelectedNodesChanged is called the data bound Selected property on the underlying node object will only ever be true for the *first* selected node -
however the correct node will become highlighted
.
Unfortunately, this component is completely unusable for me.