Skip to content

Console error related to defaultProps in TimeInput #1165

@pd2xts

Description

@pd2xts

TimeInput produces the following console error (Chrome 138, Sonoma 14.6).

Warning: TimeInput: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Related to this block of code in the TimeInput component:

var defaultProps: {
    hoursAddon: string;
    padValues: boolean;
    precision: string;
    emptyCharacter: string;
};

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