Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Need help with issue where list is only updated after keyboard is dismissed

$
0
0

@Nubdienub wrote:

Hello, a couple of days ago I created a topic on StackOverflow with a question regarding a issue that I had. Unfortunately noone could answer the question for me. I am still having this problem:

Since then I have changed my code a bit by using filters rather then for loops like this:

search(event) {
    this.periodsClone = this.periods.map(x => JSON.parse(JSON.stringify(x)));
    let value = event.target.value.toLowerCase();

    if (value != '') {

      this.periodsClone = this.periodsClone.filter((period) => {
        return (
          period.declarations.filter((declaration) => {
            return (
              declaration.name.toLowerCase().includes(value) ||
              declaration.description.toLowerCase().includes(value)
            )
          }).length > 0
        )

      })
    }
  }

The problem is still the same, but every now and then the list updates while I have the keyboard open.

I have managed to capture both cases:

Works:

Doesn’t work:

Can anyone help me out with this one?

also: I have no errors

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>