Skip to content

Commit 9c87206

Browse files
KrzysztofKarolleMaik
authored andcommitted
Close #8 In material-ui 0.19.0 onTouchTap has been removed. (#9)
* Replace onTouchTap with onClick * Update material-ui to 0.19.0 in devDependencies and peerDependencies * Uninstall react-tap-event-plugin * 0.6.0 * Remove react-tap-event-plugin from peerDependencies
1 parent 3203885 commit 9c87206

5 files changed

+8
-16
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import FullscreenDialog from 'material-ui-fullscreen-dialog'
2222
title={'Demo dialog'}
2323
actionButton={<FlatButton
2424
label='Done'
25-
onTouchTap={() => this.setState({ open: false })}
25+
onClick={() => this.setState({ open: false })}
2626
/>}
2727
>
2828
// dialog content here

package-lock.json

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "material-ui-fullscreen-dialog",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "A fullscreen dialog for Material-UI.",
55
"main": "lib/FullscreenDialog.js",
66
"scripts": {
@@ -36,18 +36,16 @@
3636
"babel-preset-es2015": "^6.14.0",
3737
"babel-preset-react": "^6.11.1",
3838
"babel-preset-stage-0": "^6.5.0",
39-
"material-ui": "^0.17.4",
39+
"material-ui": "^0.19.0",
4040
"react": "^15.5.4",
4141
"react-dom": "^15.5.4",
42-
"react-tap-event-plugin": "^2.0.1",
4342
"react-transition-group": "^1.1.1",
4443
"standard": "^10.0.2"
4544
},
4645
"peerDependencies": {
47-
"material-ui": ">=0.17.0 <1.0.0",
46+
"material-ui": ">=0.19.0 <1.0.0",
4847
"react": "^15.5.4",
4948
"react-dom": "^15.5.4",
50-
"react-tap-event-plugin": "^2.0.1",
5149
"react-transition-group": "^1.1.1"
5250
},
5351
"dependencies": {

src/FullscreenDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
5757
titleStyle={titleStyle}
5858
style={{ ...styles.appBar, ...appBarStyle }}
5959
iconElementLeft={(
60-
<IconButton onTouchTap={onRequestClose}>
60+
<IconButton onClick={onRequestClose}>
6161
{closeIcon || <NavigationCloseIcon />}
6262
</IconButton>
6363
)}

stories/FullscreenDialogDemo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class extends React.Component {
2626
title='Some demo dialog'
2727
actionButton={<FlatButton
2828
label='Done'
29-
onTouchTap={() => this.setState({ open: false })}
29+
onClick={() => this.setState({ open: false })}
3030
/>}
3131
>
3232
<TextField
@@ -38,7 +38,7 @@ export default class extends React.Component {
3838
</FullscreenDialog>
3939

4040
<RaisedButton
41-
onTouchTap={() => this.setState({ open: true })}
41+
onClick={() => this.setState({ open: true })}
4242
label='Open dialog'
4343
/>
4444
</div>

0 commit comments

Comments
 (0)