From 7c48392a256c56fa696af2b867a638317ef04669 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 12 May 2017 09:00:52 +0100 Subject: [PATCH] Editable: Auto-focus the link input --- blocks/editable/format-toolbar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blocks/editable/format-toolbar.js b/blocks/editable/format-toolbar.js index a91e9d0068642..990fb6c3adb91 100644 --- a/blocks/editable/format-toolbar.js +++ b/blocks/editable/format-toolbar.js @@ -124,6 +124,7 @@ class FormatToolbar extends wp.element.Component { } ); } + /* eslint-disable jsx-a11y/no-autofocus */ return (
@@ -134,6 +135,7 @@ class FormatToolbar extends wp.element.Component { style={ linkStyle } onSubmit={ this.submitLink }> ); + /* eslint-enable jsx-a11y/no-autofocus */ } }