Skip to content

🐞 Bug: time and duration format not validated or supported #35

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

Open
3 of 17 tasks
justjam2013 opened this issue May 26, 2025 · 0 comments
Open
3 of 17 tasks

Comments

@justjam2013
Copy link

Describe the bug
which version of ng-formworks:

  • 15.x.x
  • 16.x.x
  • 17.x.x
  • 18.x.x
  • 19.x.x

which version of Angular:

  • 15
  • 16
  • 17
  • 18
  • 19

which framework:

  • MaterialDesignFrameworkModule β€” Material Design
  • Bootstrap3FrameworkModule β€” Bootstrap 3
  • Bootstrap4FrameworkModule β€” Bootstrap 4
  • Bootstrap5FrameworkModule β€” Bootstrap 5
  • DaisyUIFrameworkModule β€” DaisyUI
  • NoFrameworkModule β€” plain HTML
  • Other (please specify below)

A clear and concise description of what the bug is.

To Reproduce

In this playground example the time format is not correctly validated and the duration format is not supported per spec.

The form shows formats for Date-Time and Date fields, but free text entry for Time and Duration:

Image

Entering a random value in the Time field, correctly shows a validation message, but shows that the form is valid:

Image

Entering a random value in the Duration field, does not show a validation message and shows that the form is valid:

Image

I tried both with and without

        "x-inputAttributes": {
          "step": 1
        }

with the same result

Expected behavior

  • Time and Duration fields should display the appropriate format
  • Time validation failing should fail the form
  • Duration format should be supported

Desktop (please complete the following information):

  • OS: [macOS]
  • Browser [chrome]
  • Version [125.0.6422.142]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant