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 working with React v15.x #3929

Closed
liesislukas opened this issue Apr 11, 2016 · 4 comments
Closed

DropDownMenu not working with React v15.x #3929

liesislukas opened this issue Apr 11, 2016 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@liesislukas
Copy link
Contributor

I installed newest React + Material-ui and tried to use drop down menu

<DropDownMenu value={this.state.value} onChange={this.handleChange}>
                    <MenuItem value={1} primaryText="Never"/>
                    <MenuItem value={2} primaryText="Every Night"/>
                    <MenuItem value={3} primaryText="Weeknights"/>
                    <MenuItem value={4} primaryText="Weekends"/>
                    <MenuItem value={5} primaryText="Weekly"/>
</DropDownMenu>

It was rendered, but nothing happens if clicked on it.

package.json dependencies:

Not working:

   "material-ui": "^0.15.0-alpha.2",
    "react": "^15.0.1",
    "react-dom": "^15.0.1",

Working:

    "material-ui": "^0.15.0-alpha.2",
    "react": "^0.14.0",
    "react-dom": "^0.14.0",

OS X 10.11.4, Node v5.10.1, npm v3.8.3, Chrome 49.0.2623.110

@liesislukas liesislukas changed the title Not working with React v15.x DropDownMenu not working with React v15.x Apr 11, 2016
@ShMcK
Copy link

ShMcK commented Apr 11, 2016

I'm having the same issue with ALL clickable components.

When possible, changing onTouchTap to onClick works, but most components have internal onTouchTap calls.

@ShMcK
Copy link

ShMcK commented Apr 11, 2016

Reverting to React 0.14.8 fixes the issue. But commenting out injectTapEventPlugin() brings the issue back.

It seems a change in React 15 concerning tap events is the underlying issue

@ShMcK
Copy link

ShMcK commented Apr 11, 2016

Possible solution:

Use the latest version of react-tap-event-plugin in your package.json:

"react-tap-event-plugin": "git+https://github.com/zilverline/react-tap-event-plugin.git"

@mbrookes mbrookes added the duplicate This issue or pull request already exists label Apr 11, 2016
@mbrookes
Copy link
Member

Dupe: #3642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants