Skip to content
Snippets Groups Projects
Commit 40e06871 authored by rhenck's avatar rhenck
Browse files

[editor] Cloze: Free-up deleted child element IDs

parent 747cfbe6
No related branches found
No related tags found
No related merge requests found
Pipeline #66568 failed
......@@ -29,6 +29,7 @@ Editor
- Leer gelassene Felder in Assistenten produzieren keine Standardwerte mehr (z.B. Beschriftung)
- Eigenschaften für Texte ohne Inhalt werden angezeigt
- Elemente Tabellendialog fließen nicht mehr über Zellenberenzung
- IDs gelöschter Lückentextelemente werden wieder freigegeben
## 2.5.0
......
......@@ -68,6 +68,9 @@ export class ClozeElement extends CompoundElement implements ClozeProperties {
setProperty(property: string, value: UIElementValue): void {
if (property === 'document') {
const deletedElements = this.getRemovedClozeElements(value as ClozeDocument);
deletedElements.forEach(el => el.unregisterIDs());
this.document = value as ClozeDocument;
// Instantiate new elements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment