From 2bd2a0ef575d52257ee5883b5d35030090932d75 Mon Sep 17 00:00:00 2001 From: Uzair Anwar Date: Thu, 2 Feb 2017 14:57:14 +0100 Subject: [PATCH] Remove unknown props from
element Fix react15 warning concerning "Unknown props `forceWidth`, `forceSingleModeWidth`, `perfectFit`, `throttle`, `autoResize`, `onReady` on
tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop" --- src/Textfit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Textfit.js b/src/Textfit.js index 98f0686..d384e94 100644 --- a/src/Textfit.js +++ b/src/Textfit.js @@ -200,7 +200,7 @@ export default createClass({ }, render() { - const { children, text, style, min, max, mode, ...props } = this.props; + const { children, text, style, min, max, mode, forceWidth, forceSingleModeWidth, perfectFit, throttle, autoResize, onReady, ...props } = this.props; const { fontSize, ready } = this.state; const finalStyle = { ...style,