Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
40e06871
Commit
40e06871
authored
4 months ago
by
rhenck
Browse files
Options
Downloads
Patches
Plain Diff
[editor] Cloze: Free-up deleted child element IDs
parent
747cfbe6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#66568
failed
4 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/release-notes-editor.md
+1
-0
1 addition, 0 deletions
docs/release-notes-editor.md
projects/common/models/elements/compound-elements/cloze/cloze.ts
+3
-0
3 additions, 0 deletions
...s/common/models/elements/compound-elements/cloze/cloze.ts
with
4 additions
and
0 deletions
docs/release-notes-editor.md
+
1
−
0
View file @
40e06871
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
projects/common/models/elements/compound-elements/cloze/cloze.ts
+
3
−
0
View file @
40e06871
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment