Skip to content

Datepicker doesn't allow pasting dates or manually typing dates #16008

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

Closed
MagnusWLarsenGormAgency opened this issue Apr 8, 2024 · 15 comments · Fixed by #18903
Closed

Datepicker doesn't allow pasting dates or manually typing dates #16008

MagnusWLarsenGormAgency opened this issue Apr 8, 2024 · 15 comments · Fixed by #18903

Comments

@MagnusWLarsenGormAgency
Copy link

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

13.2.0

Bug summary

When manually typing a date or copying a date into a date field, it doesn't update the field.

For both Date Picker and Date Picker with Time

The date picker works only when clicking the dates in the date picker window.

Specifics

Might be an underlying issue with flatpickr:
flatpickr/flatpickr#1551

Tested in
Firefox - 124.0.2
Chrome -123.0.6312.106

Steps to reproduce

  • Create a new doctype with a Date Picker
  • Create a new node of that Doctype
  • Paste or type a date that matches the format into the input field
  • Save and publish node
  • The value in the field is cleared and not saved

Expected result / actual result

It is expected that you can type or paste dates into these fields.
This worked on previous versions of Umbraco.

Copy link

github-actions bot commented Apr 8, 2024

Hi there @MagnusWLarsenGormAgency!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@NguyenThuyLan
Copy link
Contributor

Hi @MagnusWLarsenGormAgency , thanks for reporting this issue. As I can see this issue only happens when the input date doesn't have value before as in the video below. It can still type and paste other values if it already had value on it before.

Edit_.Test.-.Content.-.localhost.-.Google.Chrome.2024-07-10.15-17-47.mp4

Copy link

Hi @MagnusWLarsenGormAgency,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)

@tmb-jyskefinans-dk
Copy link

Still an issue for 13.4.1 any updates on this?

@mikecp
Copy link
Contributor

mikecp commented Sep 6, 2024

Hi @tmb-jyskefinans-dk ,
It seems that it has not been picked up yet by a community member. Or, if it has, we haven't received any PR to solve it yet.

@Lili-Rossiter
Copy link
Contributor

Hi, has there been any more progress on fixing this issue?

@Abdjulaziz
Copy link
Member

Can confirm this is also an issue on v13.5.2

@martinthogersen
Copy link

In Umbraco 14.3.1, a similar issue exists where copying and pasting a full date value is not possible. Users can only copy and paste individual components of the date, such as the day, month, or year.

See the screenshot below:

image

Please let me know if you'd like a separate issue for this.

@wonderjohan
Copy link

I can't find a way to open the DatePicker window without using the mouse, which means editors who use screen readers can't use this property at all.

@jonasdk
Copy link

jonasdk commented Feb 12, 2025

There doesn't seem to be much activity in this issue, who should one persuade to get it prioritized?

Navya-Sinhaa pushed a commit to Navya-Sinhaa/Umbraco-CMS that referenced this issue Apr 1, 2025
mikecp pushed a commit that referenced this issue Apr 4, 2025
@AndyButland
Copy link
Contributor

AndyButland commented Apr 4, 2025

Fixed in #18903 for 13.9.0.

@pwynne82
Copy link

pwynne82 commented Apr 16, 2025

Not fixed in 13.8.0 for me. Patch/Upgrade happened yesterday.

Paste in a fully formatted date and time (2025-04-16 12:00:00) > Save > Message: 'Value cannot be null'

Server OS | Microsoft Windows 10.0.20348
Server Framework | .NET 8.0.13
Default Language | en-US
Umbraco Version | 13.8.0
Current Culture | en-GB
Current UI Culture | en-GB
Current Webserver | IIS
Models Builder Mode | SourceCodeAuto
Runtime Mode | BackofficeDevelopment
Debug Mode | True
Database Provider | Microsoft.Data.SqlClient
Current Server Role | Single
Browser | Edge-chromium 135.0.0.0
Browser (user agent) | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0

@AndyButland
Copy link
Contributor

Looks like this missed the cut for 13.8 and I mis-wrote above. The PR has the correct labels and I've fixed my comment to reference 13.9.

@pwynne82
Copy link

No worries. Would you anticipate it being about 6 weeks for 13.9 to be released? Thank you.

@AndyButland
Copy link
Contributor

Something like that yes. We haven't scheduled it yet but likely will continue on that schedule for at least one more 13 minor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.