{"action":"created","issue":{"url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/21","labels_url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/21/comments","events_url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/21/events","html_url":"https://github.com/thereactivestack/meteor-webpack/issues/21","id":114477378,"number":21,"title":"I'm having an issue when using this with material-ui","user":{"login":"gabrielhpugliese","id":1252818,"avatar_url":"https://avatars.githubusercontent.com/u/1252818?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielhpugliese","html_url":"https://github.com/gabrielhpugliese","followers_url":"https://api.github.com/users/gabrielhpugliese/followers","following_url":"https://api.github.com/users/gabrielhpugliese/following{/other_user}","gists_url":"https://api.github.com/users/gabrielhpugliese/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielhpugliese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielhpugliese/subscriptions","organizations_url":"https://api.github.com/users/gabrielhpugliese/orgs","repos_url":"https://api.github.com/users/gabrielhpugliese/repos","events_url":"https://api.github.com/users/gabrielhpugliese/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielhpugliese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-01T15:48:53Z","updated_at":"2015-11-09T13:52:20Z","closed_at":null,"body":"In order to some of components from React material-ui to work, we need to run a simple snippet:\r\n```\r\nvar injectTapEventPlugin = require(\"react-tap-event-plugin\");\r\ninjectTapEventPlugin();\r\n```\r\nThis need to run before we render anything as we can see here: https://github.com/callemall/material-ui/issues/1011#issuecomment-117841529\r\n\r\nBut I'm adding that code to `entry/client/entry.js` and I think it's not running before the first render. Also tried with `Meteor.startup()` block but with no luck.\r\n\r\nDo you have any recommendation here?"},"comment":{"url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/comments/155067951","html_url":"https://github.com/thereactivestack/meteor-webpack/issues/21#issuecomment-155067951","issue_url":"https://api.github.com/repos/thereactivestack/meteor-webpack/issues/21","id":155067951,"user":{"login":"gabrielhpugliese","id":1252818,"avatar_url":"https://avatars.githubusercontent.com/u/1252818?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielhpugliese","html_url":"https://github.com/gabrielhpugliese","followers_url":"https://api.github.com/users/gabrielhpugliese/followers","following_url":"https://api.github.com/users/gabrielhpugliese/following{/other_user}","gists_url":"https://api.github.com/users/gabrielhpugliese/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielhpugliese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielhpugliese/subscriptions","organizations_url":"https://api.github.com/users/gabrielhpugliese/orgs","repos_url":"https://api.github.com/users/gabrielhpugliese/repos","events_url":"https://api.github.com/users/gabrielhpugliese/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielhpugliese/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T13:52:20Z","updated_at":"2015-11-09T13:52:20Z","body":"https://github.com/gabrielhpugliese/meteor-webpack-two-react-issue\r\n\r\nThe dropdown is not opening. How it should work: http://material-ui.com/#/components/dropdown-menu\r\nThe requirements for `DropDownMenu` to work: You gotta initialize [react-tap-event-plugin](http://material-ui.com/#/get-started/installation). It kinda monkey-patch/inject that event.\r\nMy bet on why it's not working: Since we have npm's package and Meteor's package, it's patching the npm one. But the entire application is using Meteor's one. But I'm not sure.\r\nWhy do I think that: I've removed Meteor's one on my other project and it worked. (I've copied [MeteorReactData](https://github.com/meteor/react-packages/blob/devel/packages/react-meteor-data/meteor-data-mixin.jsx) and put on project then I import when needed - had to do that because Meteor's react package is a dependency) "}}