From c9b69fd1fc6721b379cdce2ae10f115f464e783c Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 11 Oct 2020 13:48:02 +0300 Subject: [PATCH] code cosmetics --- edit/sections-editor-section.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit/sections-editor-section.js b/edit/sections-editor-section.js index 855ce700..2735ac2c 100644 --- a/edit/sections-editor-section.js +++ b/edit/sections-editor-section.js @@ -375,7 +375,8 @@ function createSection({ } $('.add-applies-to', el).addEventListener('click', e => { e.preventDefault(); - $('input', insertApplyAfter({type, value: ''}, apply).el).focus(); + const newApply = insertApplyAfter({type, value: ''}, apply); + $('input', newApply.el).focus(); }); return apply;