From d0a348bf6df430376720c776c5969e22c95cfeec Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 23 Oct 2019 11:15:46 +0100 Subject: [PATCH] Update to remote isFunction check in favour of direct check Addresses https://github.com/WordPress/gutenberg/pull/17846#discussion_r337885206 --- packages/block-editor/src/components/url-input/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/url-input/index.js b/packages/block-editor/src/components/url-input/index.js index 9867391d33150..09fdbaa5ec2d6 100644 --- a/packages/block-editor/src/components/url-input/index.js +++ b/packages/block-editor/src/components/url-input/index.js @@ -213,7 +213,7 @@ class URLInput extends Component { } } - if ( isFunction( this.props.onKeyDown ) ) { + if ( this.props.onKeyDown ) { this.props.onKeyDown( event, suggestion ); } }