Skip to content

Invalid time input from keyboard to form with timepicker causes an error 'Cannot read property 'replace' of null' #349

@melnikovee

Description

@melnikovee

I have a form with added ngx-material-timepicker.
Also have a method in .component.ts, that parses invalid time input from keyboard. For example '12' will be edited to legal '12:00'.

It worked until version 5.3.0 inclusive. But in later versions the wrong keyboard time entry causes an error 'Cannot read property 'replace' of null'.

Screenshot_200

Metadata

Metadata

Assignees

No one assigned

    Labels

    in progressstarted implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions