jquery-timepicker
jquery-timepicker copied to clipboard
useSelect, minTime, and required
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)
- in this case, if we add the "useSelect" option, the is no selected value, empty value are posted.
- 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.
- with initial empty value and "useSelect" option, first (minimal) value is automatically selected (empty value cannot be selected, despite the field is required or not). not the same behavior without "useSelect" option.
- with initial empty value and "useSelect" option, first (minimal) value is automatically selected (empty value cannot be selected, despite the field is required or not). not the same behavior without "useSelect" option.
nevermind, there is a workaround :
noneOption: [""]