remove on touch tap

This commit is contained in:
Casper Lamboo 2018-06-26 15:31:13 +02:00
parent 3670802bea
commit 02e312247c
3 changed files with 1 additions and 11 deletions

9
package-lock.json generated
View File

@ -11816,15 +11816,6 @@
"prop-types": "15.6.0" "prop-types": "15.6.0"
} }
}, },
"react-tap-event-plugin": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/react-tap-event-plugin/-/react-tap-event-plugin-3.0.2.tgz",
"integrity": "sha1-KANxZ3uIHDE3bgAnoLhtLG3gOe4=",
"dev": true,
"requires": {
"fbjs": "0.8.16"
}
},
"read": { "read": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz",

View File

@ -87,7 +87,6 @@
"normalize-jss": "^4.0.0", "normalize-jss": "^4.0.0",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"react-dom": "^16.1.1", "react-dom": "^16.1.1",
"react-tap-event-plugin": "^3.0.2",
"redux": "^3.7.2", "redux": "^3.7.2",
"redux-action-wrapper": "^1.0.1", "redux-action-wrapper": "^1.0.1",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",

View File

@ -37,7 +37,7 @@ export default class Button extends React.Component {
if (className) combinedClassName += ` ${className}`; if (className) combinedClassName += ` ${className}`;
return ( return (
<div id={id} className={combinedClassName} onTouchTap={this.onClick}> <div id={id} className={combinedClassName} onClick={this.onClick}>
{svg && <svg> {svg && <svg>
<use xlinkHref={svg}/> <use xlinkHref={svg}/>
</svg>} </svg>}