-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid time input from keyboard to form with timepicker causes an error 'Cannot read property 'replace' of null' #349
Comments
I have the same issue. ERROR TypeError: Cannot read property 'replace' of null |
yeah I have the same error? any workaround? |
I guess it happens when you pass time with wrong format. Try to use the proper format |
I recently had to solve this error popping up. We have two separate application that can edit the data in the same database, one was free type text for the column in the table, the one throwing the error was a time picker field. So the issue that something like 'test' was being used as a value for a time field. Wasn't really a fix but a work around... changed the time field to match the other application data entry method. |
I want to update data, and got this error |
While my suggested PR fixes the issue, I am using following workaround for now that might be interesting to other folks as well:
whereas |
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'.
The text was updated successfully, but these errors were encountered: