joint icon indicating copy to clipboard operation
joint copied to clipboard

joint.util.merge does not handle arrays properly

Open DavidDurman opened this issue 8 years ago • 0 comments

joint.util.merge({ foo: [1, 2, 3] }, { foo: [4, 5] })

{
    "foo": [
        4,
        5,
        3
    ]
}

This causes an issue e.g. with joint.ui.SelectButton where if select-button-group is in inspector, arrays are merged instead of replaced.

DavidDurman avatar Jan 25 '18 09:01 DavidDurman