Skip to content

Post Date: Bindings UI show non date compatible strings. #72446

@cbravobernal

Description

@cbravobernal

Description

In block bindings UI for post date, if you have any source that contains string fields, those can be selected. Causing an "invalid date" error.

Image

I would set the UI as ReadOnly for this use case.

Step-by-step reproduction instructions

  1. Register a couple of sources, or register post-meta.
  2. Add a post date.
  3. Check that on attributes, those sources can be selected. Select a string type that is not a date.
  4. Invalid date should appear.
Image

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Type

Projects

Status

🦵 Punted to 7.0

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions