Skip to content

showMillis and showSeconds trigger an unknown prop warning #26

@quentincrinon

Description

@quentincrinon

When using showMillis and/or showSeconds we are getting this warning as these custom props are given to the input component.

    Warning: React does not recognize the `showSeconds` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `showseconds` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
        in input (created by TimeField)

https://reactjs.org/warnings/unknown-prop.html

It would be nice if you can avoid your custom props from being given to the native Input component.
(Issue is due to this:

)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions