mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.68k stars 32.22k forks source link

DropDownMenu not worked! #1908

Closed borm closed 8 years ago

borm commented 9 years ago

If multiple DropDown Error: You're calling ensureDirection on the same style object twice.(…)

<Toolbar>
          <ToolbarGroup key={0} float="left">
            <DropDownMenu menuItems={filterOptions} />
          </ToolbarGroup>
          <ToolbarGroup key={1} float="right">
            <ToolbarTitle text="Options" />
            <FontIcon className="muidocs-icon-custom-sort" />
            <DropDownIcon iconClassName="muidocs-icon-navigation-expand-more" menuItems={iconMenuItems} />
            <ToolbarSeparator/>
            <RaisedButton label="Create Broadcast" primary={true} />
          </ToolbarGroup>
        </Toolbar>

i changed this, remove

<DropDownIcon iconClassName="muidocs-icon-navigation-expand-more" menuItems={iconMenuItems} />

error hidden, but first DropDownMenu not worked

aweary commented 9 years ago

I'm seeing this issue as well.

borm commented 8 years ago

Not WORK!

oliviertassinari commented 8 years ago

Should we reopen this issue?

borm commented 8 years ago

yes, reopen! I`am trying npm i material-ui - not work delete material-ui from node_modules

I`am trying git clone https://github.com/callemall/material-ui.git rename folder material-ui-master -> material-ui cd /Volumes/www/my-proj/node_modules/material-ui npm i gulp

and dropdown not work

borm commented 8 years ago

Clone this repo for view example https://github.com/bORm/mui-react-0.14.0

borm commented 8 years ago

up

louy commented 8 years ago

Hi @bORm, Your issue is that you're missing react-tap-event-plugin.

Just add the following to your App.jsx:

import injectTapEventPlugin from 'react-tap-event-plugin';

//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin();

This is already mentioned in the docs. :)

borm commented 8 years ago

Oh, thanks. I dont know what happen, but before i have this code in my app.jsx and dropdown dont worked maybe I can make a difference Close