Virtual whiteboard for sketching hand-drawn like diagrams
Fix value when multiple elements are selected (#571)
Christopher Chedeaued42672fd3dc
diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsxindex 07a4c00dea..2a48270335 100644--- a/src/actions/actionProperties.tsx+++ b/src/actions/actionProperties.tsx@@ -27,8 +27,9 @@ const getFormValue = function<T>(): T | null {return ((editingElement && getAttribute(editingElement)) ??- getCommonAttributeOfSelectedElements(elements, getAttribute) ??- defaultValue ??+ (elements.some(element => element.isSelected)+ ? getCommonAttributeOfSelectedElements(elements, getAttribute)+ : defaultValue) ??null);};