Skip to content

Allow expandOnClick to work without having to define onClick #175

Open
@GuyPaddock

Description

@GuyPaddock

At the moment, it would appear that defining expandOnClick={true} has no effect unless onClick is also defined. The doc examples indicate this as well.

In our system, we are using the checkbox tree to present files and folders, and only files are selectable. We'd like it if users could click on folders to expand them. But, to do that right now, we'd have to implement onClick. If we set onClick to a no-op func, then folders expand when clicked but we lose the default check-off behavior when users click on files. Really what we want is the default onClick behavior, with the ability for users to click on folders to expand them.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions