question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

this.inputForm.onBlur.filter is not a function and Animations error

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jwooleycommented, Jul 10, 2017

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

0reactions
Gbuompriscocommented, Jul 10, 2017

Mine was an example but you can use whatever you want with the observable as it is done in your parent component 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found