Skip to content

useSelect, minTime, and required #795

@olaulau

Description

@olaulau

Hi ;

Here are some small bugs with those jquery-timepicker options :

  • "required" attr is only correctly applied by browser if we don't use "useSelect" option
  • "minTime" is only applied to the list of available values in the list, but not enforced as minimal value . if there was a smaller value set, this value will still be posted
    • in this case, if we add the "useSelect" option, the is no selected value, empty value are posted.
      • if we add "required" attribute, the form isn't posted but we don't see any error (as if the error is on the hidden field)
  • when using "minTime" with "useSelect" and an initial empty value, it selects this minimal value (but it doesn't without "useSelect" option)
  • when using "useSelect", "ui-timepicker-[field_name]" values are posted alongside of "[field_name]" values

Hope this is detailed enough, and you will have some ideas to fix / workaround those bugs.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions