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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4da161ff37
commit
c3e2eaf8a8
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue