Open wesort opened 3 years ago
Describe the bug An optional date field displays today's date when it should be blank.
To Reproduce Steps to reproduce the behavior:
Page
replicator
date
page
Expected behavior Optional date fields should display "Add Date" button when blank. Adding a new replicator set works as expeced.
Saving the page doesn't save today's date for that field to disk. However, it's confusing.
Date field config
Date field: with bug, then as expected
Environment details (please complete the following information):
Describe the bug An optional date field displays today's date when it should be blank.
To Reproduce Steps to reproduce the behavior:
Page
with areplicator
that includes adate
fielddate
field has "Allow blank values?" toggled on.page
with thatdate
field emptyExpected behavior Optional date fields should display "Add Date" button when blank. Adding a new
replicator
set works as expeced.Saving the
page
doesn't save today's date for that field to disk. However, it's confusing.Date field config![date field config](https://user-images.githubusercontent.com/3920126/107988749-93475500-6fc8-11eb-92e6-24d59203fc80.png)
Date field: with bug, then as expected![date field - bug and expected](https://user-images.githubusercontent.com/3920126/107988769-9cd0bd00-6fc8-11eb-8728-8e2360b2aa48.png)
Environment details (please complete the following information):