From 691b2de5b256c0c5dc47231461e6438f5f1ff062 Mon Sep 17 00:00:00 2001 From: Inga Kirschnick Date: Mon, 20 Nov 2023 09:48:06 +0100 Subject: [PATCH] Bug Fix: lock chips after switch to QB --- app/static/js/corpus-analysis/query-builder/query-builder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/static/js/corpus-analysis/query-builder/query-builder.js b/app/static/js/corpus-analysis/query-builder/query-builder.js index adca9e13..5098b684 100644 --- a/app/static/js/corpus-analysis/query-builder/query-builder.js +++ b/app/static/js/corpus-analysis/query-builder/query-builder.js @@ -361,6 +361,9 @@ nopaque.corpus_analysis.query_builder.QueryBuilder = class QueryBuilder { isEditable = false; } this.submitQueryChipElement(chipElement['type'], chipElement['pretty'], chipElement['query'], null, isClosingTag, isEditable); + if (isClosingTag) { + this.lockClosingChipElement(this.elements.queryChipElements[this.elements.queryChipElements.length-1]); + } } }