Topic: completer service fails after deleting the field
osoverflow pro asked 6 years ago
Hi! I'm getting this error:
CompleterComponent.html:3 ERROR TypeError: Cannot read property 'title' of null
at eval (input.directive.ts:48)
at SafeSubscriber.schedulerFn [as _next] (core.js:4343)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:240)
at SafeSubscriber.next (Subscriber.js:187)
at Subscriber._next (Subscriber.js:128)
at Subscriber.next (Subscriber.js:92)
at EventEmitter.Subject.next (Subject.js:56)
at EventEmitter.emit (core.js:4311)
at MdbCompleterDirective.search (completer.directive.ts:62)
at eval (input.directive.ts:67)
I'm filling a completer service with data from an observer, and searching. It works, I click on the option I want. After that, if I delete the data on that field and try to look for the search again, it throws that error.
Add comment
osoverflow pro answered 6 years ago
I found the solution here:
https://mdbootstrap.com/support/bug-mdb-completer-component-minimized-cannot-read-property-title-of-null/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags