Skip to content

Array-type props are converted to strings after a drag and drop #1722

Open
@raphaelriehl

Description

@raphaelriehl

Describe the bug
Array-type props like ['value1', 'value2'] are converted to the string 'value1,value2' when their value is modified via updateBlock and the block is then moved.
They should normally retain the array format.

Here is a video demonstration of the issue:

bug-array.mp4

To Reproduce

  1. Change the value of a prop via updateBlock
  2. Move this block after another block
  3. The array-type prop is now in string format

https://stackblitz.com/edit/github-ppduqkqn?file=Alert.tsx

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions