From e9538b2994f378bd1e9976ac6c8751d2a8630807 Mon Sep 17 00:00:00 2001 From: devuxer Date: Wed, 6 Dec 2017 22:27:40 -0800 Subject: [PATCH 1/3] Replaced onActionTouchTap w/ onActionClick Snackbar property `onActionTouchTap` was replaced with `onActionClick` in [release 0.20.0](https://github.com/mui-org/material-ui/releases/tag/v0.20.0). This relates to [pull request 9058](https://github.com/mui-org/material-ui/pull/9058) and specifically [this commit](https://github.com/mui-org/material-ui/pull/9058/commits/bc97082dd318f8d4f872fc0c65cdc8539f7ea981). --- types/material-ui/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 5ae63560cc..1590771b78 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1628,7 +1628,7 @@ declare namespace __MaterialUI { className?: string; contentStyle?: React.CSSProperties; message: React.ReactNode; - onActionTouchTap?: React.TouchEventHandler<{}>; + onActionClick?: React.MouseEventHandler<{}>; onRequestClose?(reason: string): void; open: boolean; style?: React.CSSProperties; @@ -1684,7 +1684,7 @@ declare namespace __MaterialUI { bodyStyle?: React.CSSProperties; className?: string; message: string | JSX.Element; - onActionTouchTap?: React.TouchEventHandler<{}>; + onActionClick?: React.MouseEventHandler<{}>; /** @deprecated Use the open property to control the component instead */ onDismiss?(): void; // DEPRECATED onRequestClose(reason: string): void; From ad6ae77e6d53256527d8a561fdbf9324ddbd8cb2 Mon Sep 17 00:00:00 2001 From: devuxer Date: Fri, 8 Dec 2017 09:13:52 -0800 Subject: [PATCH 2/3] Replaced TouchTap w/ Click in Snackbar --- types/material-ui/material-ui-tests.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index ab1abc4577..3187188e99 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -5736,7 +5736,7 @@ class SnackbarExampleAction extends Component<{}, {open?: boolean, autoHideDurat }); } - handleActionTouchTap = () => { + handleActionClick = () => { this.setState({ open: false, }); @@ -5774,7 +5774,7 @@ class SnackbarExampleAction extends Component<{}, {open?: boolean, autoHideDurat message={this.state.message} action="undo" autoHideDuration={this.state.autoHideDuration} - onActionTouchTap={this.handleActionTouchTap} + onActionClick={this.handleActionClick} onRequestClose={this.handleRequestClose} /> From 59141deed18c70bc1d4928300a2ade53f320a84d Mon Sep 17 00:00:00 2001 From: devuxer Date: Mon, 18 Dec 2017 17:41:57 -0800 Subject: [PATCH 3/3] Updated material-ui version in header --- types/material-ui/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 1590771b78..55b34dff34 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for material-ui v0.18.17 +// Type definitions for material-ui v0.20.0 // Project: https://github.com/callemall/material-ui // Definitions by: Nathan Brown // Igor Beagorudsky