Skip to content

Repeatable Field - New item takes value from previous one #853

@kshengelia

Description

@kshengelia

Expected Behavior:

When I am adding items in repeater (for example slides in slider) it should give me new field with empty fields (like slide title, url, image).

Actual Behavior:

Instead, it takes some of the values from previous slide.

This happens with CUSTOM fields (individually built fields for CMB2) and there is no identificator (ID for the new field which we could use for workaround - whole field object is being duplicated.

Steps to reproduce (I have confirmed I can reproduce this issue on the trunk branch):

  1. Create some custom field for CMB2
  2. Use that field in Repeatable Group
  3. Try adding items in this group

CMB2 Field Registration Code:

You could use exactly these examples - https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions