pnp / sp-dev-fx-controls-react

Reusable React controls for SPFx solutions
https://pnp.github.io/sp-dev-fx-controls-react/
MIT License
380 stars 379 forks source link

Treeview defaultexpanded state never changes #1749

Closed harshdamaniahd closed 5 months ago

harshdamaniahd commented 5 months ago

Hi, I am try to change the state of defaultExpanded, like true or false. but TreeView never updates. If i provide static value it works

` <TreeView items={this.state.items} defaultExpanded={this.state.defaultExpanded} expandToSelected={false} selectionMode={TreeViewSelectionMode.Multiple} selectChildrenMode={SelectChildrenMode.Update}

         defaultSelectedKeys={this.state.defaultSelected}

        onSelect={this.onTreeItemSelect}
        onExpandCollapse={this.onTreeItemExpandCollapse}
        treeItemActionsDisplayMode={TreeItemActionsDisplayMode.ContextualMenu}
        onRenderItem={this.renderCustomTreeItem.bind(
          this.state.context.serviceScope
        )}
      /> `
ghost commented 5 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

harshdamaniahd commented 5 months ago

solved