Topic: Plugin - Tree view show not working

Rossi20022022 priority asked 2 years ago


Expected behavior

Using show tag should expand on init the < MDBTreeviewItem subtree >

Actual behavior

When show is true the subtree is collapsed, when is false the subtree is expanded.

Resources (screenshots, code snippets etc.)

I am using the package "mdb-react-treeview" installed with "git+https://oauth2:.../mdb/react/mdb5/plugins/prd/treeview"

And the code is the example from the site documentation. The false value show all subtrees expanded.

             <MDBTreeview>
                <MDBTreeviewItem name='One' />
                <MDBTreeviewItem name='Two' />
                <MDBTreeviewItem subtree show={false} name='Three'>
                    <MDBTreeviewItem name='Second-one' />
                    <MDBTreeviewItem name='Second-two' />
                    <MDBTreeviewItem name='Second-three' subtree>
                        <MDBTreeviewItem name='Third-one' subtree>
                            <MDBTreeviewItem name='Fourth-one' />
                            <MDBTreeviewItem name='Fourth-two' />
                            <MDBTreeviewItem name='Fourth-three' />
                        </MDBTreeviewItem>
                        <MDBTreeviewItem name='Third-two' />
                        <MDBTreeviewItem name='Third-three' subtree>
                            <MDBTreeviewItem name='Fourth-one' />
                            <MDBTreeviewItem name='Fourth-two' />
                            <MDBTreeviewItem name='Fourth-three' />
                        </MDBTreeviewItem>
                    </MDBTreeviewItem>
                </MDBTreeviewItem>
            </MDBTreeview>


We are aware of this problem. The fix should be available in the next release. Sorry for the inconvenience.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.2.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes