Skip to content

[Feature] Nested DropdownMenu #124

Description

@TimNZ

Thanks for your great work here.

I'm trying to replicate the nested menu from http://semantic-ui.com/collections/menu.html
It is the example with the left aligned Wrench icon dropdown and the 'Search Animals' search box.

Since your documentation is currently light, I'm struggling to figure out if nested menus is supported by playing.

This code ends up with 'Hi' menu item having a arrow icon indicating a sub menu, but clicking does nothing. I would expect since DropdownMenu requires explicit active toggling of it, but this doesn't work, nor seems a correct approach anyway.

I've tried nesting a Menu instead of DropdownMenu as well.

       <Menu className="top">
                        <DropdownMenu active={this.state.active} component={iconButton}
                                      onMenuItemClick={this.menuItemClicked.bind(this)}
                                      onClick={this.toggleDropdown.bind(this)}>
                            <MenuItem menuValue="0">First</MenuItem>
                            <MenuItem>Hi
                                <DropdownMenu vertical={true}>
                                    <MenuItem menuValue="1">Second</MenuItem>
                                </DropdownMenu>
                            </MenuItem>

                        </DropdownMenu>
                    </Menu>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions