这是它的 GIF:http: //www.giphy.com/gifs/3oKIP7arhKhNzNzytq
如您所见,每当我单击它时,它都不会选择。
这是我在 webpack 中工作的确切代码: https ://www.webpackbin.com/bins/-KoaaPYxDno695fiUBMn
但在我的初学者工具包环境中,它似乎不起作用。但是,复选框似乎有效。有任何想法吗?
"react": "^15.5.4",
"react-dom": "^15.5.4",
"material-ui": "^0.18.6",
编辑:我也有 react-tap-event-plugin 并且我在我的 client.js 文件的顶部调用了它。还尝试在我的 Location.js 文件顶部。
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
这是我的完整依赖列表:
dependencies": {
"apisauce": "^0.14.0",
"babel-polyfill": "^6.23.0",
"bluebird": "^3.5.0",
"body-parser": "^1.17.2",
"classnames": "^2.2.5",
"cookie-parser": "^1.4.3",
"core-js": "^2.4.1",
"express": "^4.15.3",
"express-graphql": "^0.6.6",
"express-jwt": "^5.3.0",
"graphql": "^0.10.3",
"history": "^4.6.3",
"isomorphic-style-loader": "^2.0.0",
"jsonwebtoken": "^7.4.1",
"material-ui": "^0.18.6",
"node-fetch": "^1.7.1",
"normalize.css": "^7.0.0",
"passport": "^0.3.2",
"passport-facebook": "^2.1.1",
"pretty-error": "^2.1.1",
"prop-types": "^15.5.10",
"query-string": "^4.3.4",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-tap-event-plugin": "^2.0.1",
"sequelize": "^4.2.1",
"serialize-javascript": "^1.3.0",
"source-map-support": "^0.4.15",
"sqlite3": "^3.1.8",
"universal-router": "^3.2.0",
"whatwg-fetch": "^2.0.3"
},