From 86cf2baa3be6859df79a83c6d79e37852f4de7c6 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 15 Aug 2018 15:26:33 +0200 Subject: [PATCH] [withWidth] Remove broken innerRef As it was raised in # this property isn't doing anything. `withTheme` is taking precedence. --- packages/material-ui/src/withWidth/withWidth.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/material-ui/src/withWidth/withWidth.js b/packages/material-ui/src/withWidth/withWidth.js index e2efb9d82b573a..670c3d36c2dc10 100644 --- a/packages/material-ui/src/withWidth/withWidth.js +++ b/packages/material-ui/src/withWidth/withWidth.js @@ -98,7 +98,7 @@ const withWidth = (options = {}) => Component => { } render() { - const { initialWidth, theme, width, innerRef, ...other } = this.props; + const { initialWidth, theme, width, ...other } = this.props; const props = { width: @@ -127,7 +127,7 @@ const withWidth = (options = {}) => Component => { return ( - + ); } @@ -144,10 +144,6 @@ const withWidth = (options = {}) => Component => { * http://caniuse.com/#search=client%20hint */ initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), - /** - * Use that property to pass a ref callback to the decorated component. - */ - innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), /** * @ignore */