Skip to content

Ensure allowInput properly syncs manual edits in date/time fields #3962

@Paul-Bob

Description

@Paul-Bob

🛠️ Fix

field :event_time, as: :date_time, picker_options: { "allowInput": true }

field :event_date, as: :date, picker_options: { "allowInput": true }

Currently, when allowInput is set to true, manually editing or pasting a value into the input field does not update the corresponding hidden "real" date/time input.

This issue aims to ensure that any manual input, whether typed or pasted, triggers a proper change event and syncs the visible field with the actual input behind the scenes.

See the Loom linked below for a full walkthrough of the issue.

🧪 Current Workarounds

Instruct users to press Enter after editing the input to manually trigger the sync. Obviously not ideal. 😤

📹 Contextual Recording

https://www.loom.com/share/ef23dda929cf4d4da35bfb71a7386801

Metadata

Metadata

Assignees

Labels

Good first issueGood for newcomersHelp wantedWe could use some help with thisJavascriptPull requests that update Javascript codeTaskSomething to get done

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions