Fix bug where the instance of style and userdata where referenced to the first container added. The fix apply a structured clone to these objects.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-18 16:24:54 +02:00
parent 4da161ff37
commit c3e2eaf8a8

View file

@ -85,6 +85,6 @@ export const GetDefaultContainerProps = (
XPositionReference: containerConfig.XPositionReference ?? XPositionReference.Left, XPositionReference: containerConfig.XPositionReference ?? XPositionReference.Left,
minWidth: containerConfig.MinWidth ?? 0, minWidth: containerConfig.MinWidth ?? 0,
customSVG: containerConfig.CustomSVG, customSVG: containerConfig.CustomSVG,
style: containerConfig.Style, style: structuredClone(containerConfig.Style),
userData: containerConfig.UserData userData: structuredClone(containerConfig.UserData)
}); });