You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom block with a structure field, that has several fields (text, color, list, two date fields)
When I edit a structure item and hit CTRL+S, the structure form is closed and I see the editing mask for the block again, but all content is gone – at least visually. When I close the drawer and save the changes, everything works as expected (the content is still there incl. my intentionally made changens).
This does not happen, when I exclude the date fields. However, the changes I made were not in the date fields, but in a text field.
Expected behavior
I expect CTRL+S to close the structure field edit mask and return to the block edit mask without loosing the content.
Your setup
Kirby 4.2.0 on PHP 8.3, running on Ubuntu in WSL (Windows 11) with Symfony Webserver
The text was updated successfully, but these errors were encountered:
# site/blueprints/blocks/timeline.yml
name:
en: Timeline
de: Zeitleiste
fields:
headline:
label:
en: Headline
de: Überschrift
type: text
width: 1/2
required: true
phases:
label:
en: Project phases
de: Projektphasen
columns:
title: true
color: true
from: true
till: true
type: structure
fields:
title:
type: text
required: true
width: 1/2
color:
label:
en: Color
de: Farbe
type: color
required: true
width: 1/2
from:
label:
en: From
de: Von
type: date
calendar: false
required: true
width: 1/2
till:
label:
en: Till
de: Bis
type: date
calendar: false
required: true
width: 1/2
objectives:
type: list
required: true
When you use it like this, ctrl + s clears the data in the view. However, when you uncomment from and till (both, one is not enough), everything works as expected.
Description
I have a custom block with a structure field, that has several fields (text, color, list, two date fields)
When I edit a structure item and hit CTRL+S, the structure form is closed and I see the editing mask for the block again, but all content is gone – at least visually. When I close the drawer and save the changes, everything works as expected (the content is still there incl. my intentionally made changens).
This does not happen, when I exclude the date fields. However, the changes I made were not in the date fields, but in a text field.
Expected behavior
I expect CTRL+S to close the structure field edit mask and return to the block edit mask without loosing the content.
Your setup
Kirby 4.2.0 on PHP 8.3, running on Ubuntu in WSL (Windows 11) with Symfony Webserver
The text was updated successfully, but these errors were encountered: