this.inputForm.onBlur.filter is not a function and Animations error
See original GitHub issueI’m submitting a … (check one with “x”)
[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question
Current behavior
I’m getting error:
this.inputForm.onBlur.filter is not a function
at TagInputComponent.setUpOnBlurSubscriber
My code looks more or less like this
<tag-input
[(ngModel)]="data.types"
[onTextChangeDebounce]="200"
[onlyFromAutocomplete]="true"
[clearOnBlur]="true"
[removable]="mode === 'add' || mode === 'update'"
[disabled]="mode === 'view' ? true : null"
(onAdd)="updateServiceInput()"
secondaryPlaceholder="+"
placeholder="+">
<tag-input-dropdown
displayBy="name"
identifyBy="name"
[autocompleteObservable]="indicatorTypesSuggestion">
<ng-template let-item="item" let-index="index">
{{ item.name }}
</ng-template>
</tag-input-dropdown>
</tag-input>
And afterwards, upon selecting an item from the suggestion, I received:
ERROR Error: Unable to process animations due to the following failed trigger transitions
@animation has failed due to:
- Please provide a value for the animation param enter
- The provided timing value "" is invalid.
Expected behavior
No error shouldn’t be thrown.
Minimal reproduction of the problem with instructions (if applicable)
as described above.
What is the motivation / use case for changing the behavior? (if applicable)
What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
angular-cli
Angular version:
version 4.1.1
ng2-tag-input version:
ngx-chips v1.4.5
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
tested in Chrome
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Property 'blur' does not exist on type 'Input' - Stack Overflow
Here, Input is imported from native-base. Due to this, I get type errors/warnings when I submit the form. An unhandled error was caught...
Read more >Form item error, should be shown first time on blur, not on ...
The only problem with this approach is when the form is submitted and the fields are invalid, the validation mode will not be...
Read more >onblur Event - W3Schools
The onblur event occurs when an element loses focus. The onblur event is often used on input fields. The onblur event is often...
Read more >Focusing: focus/blur | W3docs JavaScript Tutorial
Learn the basics of focusing in this chapter. Here we cover what focus and blur are, their functions, as well as how to...
Read more >blur() - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The blur() CSS function applies a Gaussian blur to the input image. Its result is a <filter-function> . Try it. CSS Demo: blur()....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found out that this was caused by not importing the rxjs filter. Adding the following to my module fixed the issue:
import 'rxjs/add/operator/filter';
Mine was an example but you can use whatever you want with the observable as it is done in your parent component 😃