Skip to content
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

Calendar not working with empty date field included in a structure field #6422

Closed
animaux opened this issue Apr 30, 2024 · 0 comments · Fixed by #6425
Closed

Calendar not working with empty date field included in a structure field #6422

animaux opened this issue Apr 30, 2024 · 0 comments · Fixed by #6425
Assignees
Labels
type: bug 🐛 Is a bug; fixes a bug
Milestone

Comments

@animaux
Copy link

animaux commented Apr 30, 2024

Description

When having an empty date field inside a structure field and trying to use the calendar date picker, only a small black square is showing up.  After entering a value by hand the calendar works as expected.

Expected behavior

The calendar date picker should open.

Screenshots

Skjermbilde 2024-04-30 kl  14 42 08

To reproduce

Create a page with the following field in the blueprint:

termine:
  label: Termine
  type: structure
  fields:
    datum:
      label: Datum
      type: date
      width: 1/3
      required: true

Your setup

Kirby Version
4.2.0 (PHP 8.3.6)

Console output

RangeError: Array length must be a positive integer of safe magnitude.

Your system (please complete the following information)

  • Device: mac Mini 2018 (Intel)
  • OS: macOS 14.4.1
  • Browser: Safari
  • Version: 17.4.1
@distantnative distantnative self-assigned this May 1, 2024
@distantnative distantnative added this to the 4.2.1 milestone May 1, 2024
@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label May 1, 2024
@distantnative distantnative linked a pull request May 1, 2024 that will close this issue
1 task
@distantnative distantnative modified the milestones: 4.2.1, 4.3.0 Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants