diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 20225c18..c7e4c1bb 100644 --- a/app/assets/javascripts/02-editor.js +++ b/app/assets/javascripts/02-editor.js @@ -421,7 +421,7 @@ function generateClickListener (editorEl, contentEl) { if (selectedType) { event.preventDefault() selectedType.updateInput(selectedEl, editorEl) - event.target.classList.add("selected") + selectedEl.classList.add("selected") return false } }