Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeaters have wrong field values inside a cloned block #2044

Closed
ianinadavydova opened this issue Jan 6, 2023 · 3 comments
Closed

Repeaters have wrong field values inside a cloned block #2044

ianinadavydova opened this issue Jan 6, 2023 · 3 comments
Labels
type: bug Something isn't working

Comments

@ianinadavydova
Copy link

ianinadavydova commented Jan 6, 2023

Description

When repeater is inside a block editor, and we clone this block, repeater's data is wrong, fields values are the same within several repeaters.
Maybe it is connected with #1818, but in that issue repeater's fields are empty and in my case I have them filled with wrong data

Steps to reproduce

  1. Define a block editor with repeater block.
  2. Add several repeater items & fill it's form fields.
  3. Duplicate the field.

Also possible to watch the video to understand: Download example video.

Expected result

Repeaters fields values in cloned block are exactly the same as in the initial block

Actual result

Cloned repeaters fields data is wrong, it has the same values within several items instead of all different data in each of them, exactly like in the initial block
photo1663749667

Versions

Twill version: 2.8.7
Laravel version: 8.0
PHP version: 7.4
Database engine: Mysql: 5.7

@ianinadavydova ianinadavydova changed the title Repeaters have wrong field values inside a cloned blocked Repeaters have wrong field values inside a cloned block Jan 6, 2023
@haringsrob
Copy link
Contributor

hey @ianinadavydova is this a json repeater?

@ianinadavydova
Copy link
Author

@haringsrob Hey, it is this repeater https://twill.io/docs/1.x/#adding-repeater-blocks

@ifox
Copy link
Member

ifox commented Jan 31, 2023

Related to #1818

@ifox ifox added the type: bug Something isn't working label Jan 31, 2023
haringsrob added a commit that referenced this issue Mar 10, 2023
zeezo887 pushed a commit to zeezo887/twill that referenced this issue Apr 10, 2023
@ifox ifox closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants