-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Date widget inside list widget not showing default date value #1117
Comments
Hi @thebetternewt |
This seems to be fixed in 1.3.5, not sure where the fix actually occurred. Please comment if you're still able to reproduce. |
Hi. Sorry for the delayed response. Yes I thought this issue was already confirmed and fixed. I did not realize the issue was still open. It has been working for a while now. Thanks your your help! |
I can still reproduce this in v1.5.0 using the original config, although I couldn't in v1.3.5. I'm guessing the fix was a side effect of the regression fixed in #1210. Unfortunately, fixing that regression broke this again. collections:
- label: "Settings"
name: "Settings"
files:
- name: "date_settings"
label: "Date Settings"
file: "data/date_settings.json"
description: "Set blackout dates"
fields:
- label: "Blackout Dates"
name: "blackout_dates"
widget: "list"
fields:
- {label: "Note", name: "note", widget: "string"}
- {label: "Start Date", name: "start_date", widget: "date"}
- {label: "End Date", name: "end_date", widget: "date"} |
When a new list item is created, the Date widget calls The nested default is set using this code: For some reason, when the list is first being created, Is the Redux action asynchronous in this case? If so, when we call |
@erquhart can we now close this? |
@erquhart ping!!! |
@barthc sorry about that, yes! |
- Do you want to request a feature or report a bug?
- What is the current behavior?
- If the current behavior is a bug, please provide the steps to reproduce.
- What is the expected behavior?
- Please mention your CMS, node.js, and operating system version.
- Please link or paste your
config.yml
below if applicable.I have a list widget with each item containing multiple date fields. However, all date fields other than the last field are initially blank instead of showing the default value (the current date in this case). I am using CMS version 1.2.0 according to my browser console.
Here is a link to my config.yml:
config.yml
The text was updated successfully, but these errors were encountered: