From 805780730db583c77cbf6a8c87bd74db384f2474 Mon Sep 17 00:00:00 2001 From: void Date: Sat, 9 Jan 2021 19:20:29 +0000 Subject: [PATCH] editor: arreglar marks con propiedades con otras marks adentro --- app/assets/javascripts/02-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }