Skip to content

Commit

Permalink
Fix double touchtap bug in all chip
Browse files Browse the repository at this point in the history
TouchTapping the "All" Chip in the browse menu previously resulted two touchtaps. Solved by this method: mui/material-ui#5070 (by adding an event.preventDefault())
  • Loading branch information
Joon Park authored and Joon Park committed Feb 17, 2017
1 parent eeae3a1 commit d0638b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion app/components/Browse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,16 @@ const Browse = (
removeHover
}
) => {
const homeChip = <Chip onTouchTap={() => showSchools()}>All</Chip>;
const homeChip = (
<Chip
onTouchTap={(event) => {
event.preventDefault();
showSchools();
}}
>
All
</Chip>
);
const arrow = <FontIcon className="material-icons">chevron_right</FontIcon>;
const schoolNav = <Chip onTouchTap={() => showSubjects(currentTerm, selected.school)}>{selected.school}</Chip>;
const subjectNav = (
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@
"css-loader": "^0.26.1",
"es6-promise": "^4.0.5",
"express": "^4.14.0",
"file-loader": "^0.9.0",
"file-loader": "^0.10.0",
"fullcalendar": "^3.1.0",
"immutable": "^3.8.1",
"isomorphic-fetch": "^2.2.1",
"jquery": "^3.1.1",
"material-ui": "^0.16.1",
"material-ui": "^0.17.0",
"moment": "^2.17.1",
"react": "^15.3.2",
"react-bootstrap": "^0.30.6",
"react-dom": "^15.3.2",
"react-redux": "^4.4.6",
"react-redux": "^5.0.2",
"react-router": "^3.0.0",
"react-tap-event-plugin": "^2.0.1",
"redux": "^3.6.0",
Expand All @@ -63,7 +63,7 @@
"request-json": "^0.6.1",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.14.0"
"webpack": "^2.2.1"
},
"babel": {
"presets": [
Expand Down

0 comments on commit d0638b6

Please sign in to comment.