Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Dropdown): Doesn't render sub-menus #2560

Closed
maulberto3 opened this issue Feb 22, 2018 · 4 comments
Closed

fix(Dropdown): Doesn't render sub-menus #2560

maulberto3 opened this issue Feb 22, 2018 · 4 comments

Comments

@maulberto3
Copy link

maulberto3 commented Feb 22, 2018

Steps to Reproduce

import React from 'react'
import { Dropdown, Icon } from 'semantic-ui-react'

const DropdownExampleMenuDirection = () => (
  <Dropdown text='Menu' floating labeled button className='icon'>
    <Dropdown.Menu>
      <Dropdown.Item>
        <Icon name='left dropdown' />
        <span className='text'>Left</span>
        <Dropdown.Menu className='left'>
          <Dropdown.Item>1</Dropdown.Item>
          <Dropdown.Item>2</Dropdown.Item>
          <Dropdown.Item>3</Dropdown.Item>
        </Dropdown.Menu>
      </Dropdown.Item>
      <Dropdown.Item>
        <Icon name='dropdown' />
        <span className='text'>Right</span>
        <Dropdown.Menu className='right'>
          <Dropdown.Item>1</Dropdown.Item>
          <Dropdown.Item>2</Dropdown.Item>
          <Dropdown.Item>3</Dropdown.Item>
        </Dropdown.Menu>
      </Dropdown.Item>
    </Dropdown.Menu>
  </Dropdown>
)

Expected
The Dropdown should render sub-menus ("1", "2", "3").

Result
The Dropdown only render main menus ("left", "right").

@welcome
Copy link

welcome bot commented Feb 22, 2018

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@layershifter
Copy link
Member

Duplicate, see #1724 for more details.

@maulberto3
Copy link
Author

I just saw the nested dropdowns not supported...

@maulberto3
Copy link
Author

maulberto3 commented Feb 22, 2018

But then again, I see above that the:
"Pointing
A dropdown can be formatted so that its menu is pointing."

dropdown is working with nested dropdowns.
So it is functional right?

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

No branches or pull requests

2 participants