File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ class SignaturePad extends PureComponent {
1010 static propTypes = {
1111 width : PropTypes . number ,
1212 height : PropTypes . number ,
13- className : PropTypes . string ,
1413 options : PropTypes . object ,
1514 redrawOnResize : PropTypes . bool . isRequired ,
16- debounceInterval : PropTypes . number . isRequired
15+ debounceInterval : PropTypes . number . isRequired ,
16+ canvasProps : PropTypes . object
1717 }
1818
1919 static defaultProps = {
@@ -204,10 +204,12 @@ class SignaturePad extends PureComponent {
204204 }
205205
206206 render ( ) {
207+ const { canvasProps} = this . props ;
208+
207209 return (
208210 < canvas
209- className = { this . props . className }
210- ref = { ref => this . _canvas = ref } />
211+ ref = { ref => this . _canvas = ref }
212+ { ... canvasProps } />
211213 ) ;
212214 }
213215
You can’t perform that action at this time.
0 commit comments