Skip to content

DataForm: datetime field update not reflected immediately in render component #68148

Open
@gigitux

Description

Description

When the datetime field is updated in panel mode, the corresponding render component does not refresh immediately. Instead, the update is only reflected after the popup is closed. This issue is specific to the date field, as other fields update the view component as expected.

NOTE: When the input is updated via navigation keys, everything works as expected.

Step-by-step reproduction instructions

  1. Ensure that add Quick Edit experiment is enabled
  2. Visit wp-admin/site-editor.php?p=%2Fpage&layout=table&quickEdit=true
  3. Select a page
  4. Edit the date.
  5. Change the day via character keys.
  6. See that the preview isn't updated.
  7. Change the day via navigation keys.
  8. See that the preview is updated.

Screenshots, screen recording, code snippet

With navigation keys With character keys
Screen.Capture.on.2024-12-19.at.18-23-13.mp4
Screen.Capture.on.2024-12-19.at.18-23-46.mov

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

Assignees

No one assigned

    Labels

    [Package] DataViews/packages/dataviews[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions