Virtual whiteboard for sketching hand-drawn like diagrams
fix: slider value resets to the default value when opacity is 0 (#516)
lissitz3f1075cbcd6a
diff --git a/src/actions/actionProperties.tsx b/src/actions/actionProperties.tsxindex af8f948185..49e3e97b83 100644--- a/src/actions/actionProperties.tsx+++ b/src/actions/actionProperties.tsx@@ -26,9 +26,9 @@ const getFormValue = function<T>(defaultValue?: T): T | null {return (- (editingElement && getAttribute(editingElement)) ||- getCommonAttributeOfSelectedElements(elements, getAttribute) ||- defaultValue ||+ (editingElement && getAttribute(editingElement)) ??+ getCommonAttributeOfSelectedElements(elements, getAttribute) ??+ defaultValue ??null);};@@ -211,7 +211,7 @@ export const actionChangeOpacity: Action = {elements,element => element.opacity,100 /* default opacity */- ) || undefined+ ) ?? undefined}/></>