close
Skip to content

DateTimePicker day input issue #75530

@anastis

Description

@anastis

Description

It looks like there is an issue updating the component's day field, when the value itself has been changed.

Step-by-step reproduction instructions

  1. Create a new or open an existing post.
  2. Click on the Publish field to expand the DateTimePicker control.
  3. Select February from the dropdown, or click on any February date on the calendar.
  4. Enter 30 into the Day field.
  5. Click just outside the day field, or hit tab to move focus.

The month dropdown and the calendar below, correctly change to March 2nd.
The day field shows 30.

  1. Click inside the day field, and out again (or move focus in and out again with shift-tab and tab)

The day field now is updated to the correct 02

Screenshots, screen recording, code snippet

Without the Gutenberg plugin enabled.

Image


With the Gutenberg v22.5.3 plugin enabled, once the day field loses focus:

Image

Environment info

  • WP: 6.9 & 6.9.1
  • Theme: Twenty Twenty-Five
  • Firefox & Chrome on MacOS & Windows

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

Labels

[Package] Components/packages/components[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions