Skip to content

[6.x] Date field issues #12778

@robdekort

Description

@robdekort

Bug description

I'm running into an issue where the date field somehow doesn't validate. I also can't use the datepicker to select a new date (nothing happens) nor can I click the clear button (date doesn't clear).

Image

How to reproduce

I used this:

-
  handle: event_date_start
  field:
    time_enabled: true
    time_seconds_enabled: false
    full_width: false
    inline: false
    columns: 1
    rows: 1
    display: 'Event date (start)'
    type: date
    icon: date
    listable: true
    instructions_position: above
    visibility: visible
    always_save: false
    width: 50
    validate:
      - required
-
  handle: event_date_end
  field:
    time_enabled: true
    time_seconds_enabled: false
    full_width: false
    inline: false
    columns: 1
    rows: 1
    display: 'Event date (end)'
    type: date
    icon: date
    listable: true
    instructions_position: above
    visibility: visible
    always_save: false
    width: 50
    validate:
      - required

Logs

Environment

Environment
Application Name: Statamic Peak Development
Laravel Version: 12.34.0
PHP Version: 8.4.13
Composer Version: 2.8.11
Environment: local
Debug Mode: ENABLED
URL: statamic-peak.test/
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 4
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.0.0-alpha.13 PRO

Statamic Addons
studio1902/statamic-peak-browser-appearance: dev-statamic-6
studio1902/statamic-peak-commands: dev-statamic-6
studio1902/statamic-peak-seo: dev-statamic-6
studio1902/statamic-peak-tools: dev-statamic-6

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions