Skip to content
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

Flexible DateTime widget: Small UX improvement when clearing date #4051

Closed
stefan-korn opened this issue Nov 7, 2023 · 0 comments · Fixed by #4157
Closed

Flexible DateTime widget: Small UX improvement when clearing date #4051

stefan-korn opened this issue Nov 7, 2023 · 0 comments · Fixed by #4157
Assignees

Comments

@stefan-korn
Copy link
Contributor

User Story

The flexible DateTime widget (flexible_datetime) is setting the time part to "00:00:00" if a date is chosen but no time. This is convenient and avoids annoying validation error message.

It would also be nice, to have the time part cleared when you clear the date part via the HTML5 widget, but only when the time part is 00:00:00 probably. I would propose to have the time part cleared the same way the "00:00:00" time part is set (in valueCallback).

Acceptance Criteria

Clearing a date with time part "00:00:00" should allow to save and clear the time part while processing the value.

@github-actions github-actions bot added this to Incoming/Triage in DKAN 2 Issue Triage Nov 7, 2023
stefan-korn added a commit to stefan-korn/dkan that referenced this issue Nov 7, 2023
stefan-korn added a commit to stefan-korn/dkan that referenced this issue Nov 10, 2023
stefan-korn added a commit to stefan-korn/dkan that referenced this issue Dec 11, 2023
@dafeder dafeder self-assigned this Apr 5, 2024
paul-m pushed a commit that referenced this issue Apr 9, 2024
…aring date (#4157)

Co-authored-by: Stefan Korn <drupal@stefan-korn.de>
DKAN 2 Issue Triage automation moved this from Incoming/Triage to Closed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2 participants