From 07afdbe5f576951867da742d139d37e57dba320c Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Mon, 18 Mar 2024 14:35:15 +0100 Subject: [PATCH] revert cy test --- client/src/helpers/highlight.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/helpers/highlight.ts b/client/src/helpers/highlight.ts index b1e4c501..4fd52a6d 100644 --- a/client/src/helpers/highlight.ts +++ b/client/src/helpers/highlight.ts @@ -175,10 +175,10 @@ export const getSelectionHandler = const selector = parentSelector ? parentSelector : 'content-component'; const contentComponent = findClosestAncestorWithClass(startContainer, selector); if (contentComponent) { - // if (contentComponent.classList.contains('content-component--solution')) { - // // Lorenz: I added this to prevent highlighting of the solution. It ain't pretty, but it works - // return; - // } + if (contentComponent.classList.contains('content-component--solution')) { + // Lorenz: I added this to prevent highlighting of the solution. It ain't pretty, but it works + return; + } // our selection is wholly inside the container node, we continue with it const position = findPositionInParent(contentComponent); const uuid = contentComponent.dataset.uuid || '';