From 2b760390f3d94bc9f23f0cbd82b9936c6a0b9207 Mon Sep 17 00:00:00 2001 From: yahil madakiya Date: Thu, 10 May 2018 19:12:10 +0530 Subject: [PATCH] Fix: UrlInput autoFocus Issue With Custom Block (#6197) * Issue #6196: Add option to set autofocus true/false. Default can be true. * Assign default value as a true. --- editor/components/url-input/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/components/url-input/index.js b/editor/components/url-input/index.js index 294076f7990bcf..564ec113ee6aa9 100644 --- a/editor/components/url-input/index.js +++ b/editor/components/url-input/index.js @@ -179,13 +179,13 @@ class UrlInput extends Component { } render() { - const { value = '', instanceId } = this.props; + const { value = '', autoFocus = true, instanceId } = this.props; const { showSuggestions, posts, selectedSuggestion, loading } = this.state; /* eslint-disable jsx-a11y/no-autofocus */ return (