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

DropDownMenu not worked! #1908

Closed
borm opened this issue Oct 17, 2015 · 8 comments · Fixed by #1923
Closed

DropDownMenu not worked! #1908

borm opened this issue Oct 17, 2015 · 8 comments · Fixed by #1923
Labels
component: menu This is the name of the generic UI component, not the React module!

Comments

@borm
Copy link

borm commented Oct 17, 2015

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

@borm borm changed the title Error: You're calling ensureDirection on the same style object twice.(…) DropDownMenu not worked! Oct 17, 2015
borm added a commit to borm/material-ui that referenced this issue Oct 17, 2015
@aweary
Copy link
Contributor

aweary commented Oct 19, 2015

I'm seeing this issue as well.

louy added a commit to louy/material-ui that referenced this issue Oct 19, 2015
louy added a commit to louy/material-ui that referenced this issue Oct 19, 2015
louy added a commit to louy/material-ui that referenced this issue Oct 19, 2015
tyfoo pushed a commit to tyfoo/material-ui that referenced this issue Oct 21, 2015
alitaheri pushed a commit to alitaheri/material-ui that referenced this issue Oct 27, 2015
@borm
Copy link
Author

borm commented Oct 29, 2015

Not WORK!

@oliviertassinari
Copy link
Member

Should we reopen this issue?

@borm
Copy link
Author

borm commented Oct 30, 2015

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 added a commit to borm/mui-react-0.14.0 that referenced this issue Oct 30, 2015
@borm
Copy link
Author

borm commented Oct 30, 2015

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

@borm
Copy link
Author

borm commented Nov 3, 2015

up

@louy
Copy link
Contributor

louy commented Nov 6, 2015

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
Copy link
Author

borm commented Nov 6, 2015

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

@zannager zannager added the component: menu This is the name of the generic UI component, not the React module! label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants