From 73dcbc4c022e6c9a26d5d6097dc7251fc9937428 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Wed, 10 Nov 2021 18:07:52 +0100
Subject: [PATCH] Fix dropList reading of existing element's value

---
 projects/common/models/compound-elements/drop-list.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/common/models/compound-elements/drop-list.ts b/projects/common/models/compound-elements/drop-list.ts
index d2be9550a..a242a7e7c 100644
--- a/projects/common/models/compound-elements/drop-list.ts
+++ b/projects/common/models/compound-elements/drop-list.ts
@@ -23,7 +23,7 @@ export class DropListElement extends InputElement implements FontElement, Surfac
     Object.assign(this, initFontElement(serializedElement));
     Object.assign(this, initSurfaceElement(serializedElement));
 
-    this.value = [];
+    this.value = serializedElement.value as string[] || [];
     this.height = serializedElement.height || 100;
     this.backgroundColor = serializedElement.backgroundColor as string || 'transparent';
   }
-- 
GitLab