getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[v4] Color field inside block stops structure field from saving content #5835

Closed blaaaaaaam closed 1 year ago

blaaaaaaam commented 1 year ago

Description

I've created a custom block type that contains a structure field and a color field using the new Kirby4 color field. When I first create the custom block (either in a layout field or blocks field), I'm able to create new entries in the structure and save the contents. When I go back into the block to make changes, the content doesn't save.

Screenshots
Here's a quick screen recording. You can see that when I click the save button it immediately reverts back to the old value.

Kirby4-ColorStructure-Bug

To reproduce

Here is the custom block type code. The structure field works fine when I tested without the colour field:

name: Custom
tabs:
  main:
    fields:
      structure:
        type: structure
        fields:
          text:
            type: text
      colour:
        type: color

Your setup

Kirby Version
4.0.0 beta 2

distantnative commented 1 year ago

Can't point my finger on where it got fixed, but I can reproduce it on v4/main but not v4/develop. So this will be fixed with the release of beta.3 – if it shouldn't, please let us know and we will reopen this issue.