From a54561ce75fef7fcf6bd4ce60d3897dfa9d932df Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 6 Jan 2020 12:01:13 -0500 Subject: [PATCH] Remove the code to autofocus raw tag editor in text mode (closes #6685) --- modules/ui/raw_tag_editor.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index 6b8cf1d12..4b6a364e2 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -144,14 +144,6 @@ export function uiRawTagEditor(context) { .on('blur', textChanged) .on('change', textChanged); - // If All Fields section is hidden, focus textarea and put cursor at end.. - var fieldsExpanded = d3_select('.hide-toggle-preset_fields.expanded').size(); - if (_state !== 'hover' && _tagView === 'text' && !fieldsExpanded) { - var element = textarea.node(); - element.focus(); - element.setSelectionRange(textData.length, textData.length); - } - // View as List var list = wrap.selectAll('.tag-list')