Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48986

Can't write on a ion-searchbar when a modal is opened

$
0
0

Hello!

I’m experiencing problems with my Windows 10 app on Ionic 4 + Angular. Whenever I open a modal, I can’t click on my ion-searchbar (which is on the header of the parent window). I have removed the modal backdrop already and I can click other buttons, but I can’t write on the searchbar, even calling the function “setFocus()”.

Searchbar code:

HTML

<ion-searchbar #searchbar class="searchbar" [(ngModel)]="search" inputmode="text" placeholder="Search..." (click)="searchBarFocus()">
  </ion-searchbar>

TS

searchBarFocus() {
  setTimeout(() => {
    this.searchbar.setFocus();
  }, 100);
}

Any idea? On a browser it works great, but not on Windows (built with Cordova).

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48986

Trending Articles



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