Step attribute on input type time is not supported.

Created on 26 February 2021, over 3 years ago
Updated 14 March 2024, 8 months ago

Problem/Motivation

When i try to save nodes, i get the JS error " Step attribute on input type time is not supported.". This prevents from saving my changes in some cases, especially on node types on which i have Gutenberg enabled.

Proposed resolution

I managed to fix this hacking the module's clientside_validation_jquery JS file this way:

$(this).validate({
  rules: {
    "created[0][value][time]": {step: false}
  }
});

So i was wondering is there a way to define custom rules for the validation?

Thanks for helping me out :)

💬 Support request
Status

Needs work

Version

3.0

Component

Code

Created by

🇫🇮Finland joey-santiago

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States skyriter

    For some context, I created a site on Simplytest.me with the following modules installed and enabled
    - office_hours@1.17.0
    - clientside_validation@4.0.2
    - clientside_validation_jquery@4.0.2

    I used the default configuration.

    While entering the hour range, the site threw this error when going from the "To" to the "From" field.

Production build 0.71.5 2024