diff --git a/app/assets/javascripts/02-editor.js b/app/assets/javascripts/02-editor.js index 20225c1..c7e4c1b 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 } }