getkirby / kirby

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

Panel: Date / Time fields in nested structure don't save their updated content when I hit save #3388

Closed trych closed 2 years ago

trych commented 3 years ago

Describe the bug
In a structure field that is in a block (not sure if this goes for all nested structure fields, i.e. also for those that are nested within another structure field), when I have a date field or a time field and type something into this type field and then hit save (cmd + S), as I typically do to save my changes, the structure field will be closed as expected, but the value jumps back to what it previously was. If I instead click away from the field first or click on the OK button this does not happen.

To Reproduce
Steps to reproduce the behavior:

  1. Create a block that contains a structure field that contains a date and/or time field.
  2. Go to the panel to add such a block.
  3. Edit the date / time field of the block by typing into the text field.
  4. Hit cmd + S to save.
  5. Check the fields value, it should be set to what it previously (before editing) was (most likely back to empty with a new block).

Expected behavior
Hitting save should save the newly entered value, as it does within date fields in non-nested structure fields (I just double checked, this works for me).

Kirby Version
3.5.5

Desktop (please complete the following information):

Additional context
Possibly related to #3037.

distantnative commented 2 years ago

✅ Will be fixed in upcoming 3.6.2