From 0f2e52f5beaf172ba5dbee9c5987057e08cfe754 Mon Sep 17 00:00:00 2001 From: contra Date: Sat, 20 Jan 2018 13:26:39 -0500 Subject: [PATCH] pass through style components should pass through their style properties so they can be used with higher order components like react-dimensions, or just doing custom styling. --- src/Codemirror.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Codemirror.js b/src/Codemirror.js index b372f96..e965abe 100644 --- a/src/Codemirror.js +++ b/src/Codemirror.js @@ -15,6 +15,7 @@ const CodeMirror = createReactClass({ propTypes: { autoFocus: PropTypes.bool, className: PropTypes.any, + style: PropTypes.object, codeMirrorInstance: PropTypes.func, defaultValue: PropTypes.string, name: PropTypes.string, @@ -118,7 +119,7 @@ const CodeMirror = createReactClass({ this.props.className ); return ( -
+