Skip to content

Console error related to defaultProps in TimeInput #1165

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;
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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