Ion-searchbar autocorrect not working

#1

Hi guys !

I’m not able to make autocorrect “ON” on a ion-searchbar, but I was able to do it on a ion-textarea input…

Here is my code:

<ion-searchbar
          *ngIf="enviesOpened"
          class="mesenvies-searchbar"
          placeholder="Rechercher selon mes envies"
          [(ngModel)]="searchtext"
          [formControl]="searchControl"
          (ionInput)="onSearchInput()"
          autocorrect="on"
  ></ion-searchbar>

I tried with spellcheck true too but nothing seems to work here :confused:

Any help on this please ?
Thanks !

#2

Any tips anyone please ?

I’ll update this post if I finally find something that works elsewhere :confused:

#3

Ok I finally figured this out, with a bit of luck I have to say.

So if you get this issue too, you just need to add type=“text” on your searchbar, it worked in my case:

<ion-searchbar
          *ngIf="enviesOpened"
          class="mesenvies-searchbar"
          placeholder="Rechercher selon mes envies"
          [(ngModel)]="searchtext"
          [formControl]="searchControl"
          (ionInput)="onSearchInput()"
          autocorrect="on"
          type="text"
  ></ion-searchbar>
#4

hi sir i need some help

#5

Sure, what’s wrong ?

#6

thank u sir,…
i need get the device current location and latitude and longitude…
using ionic 4 or 3

#7

use this native geolocation to get current latitude and longitude of device.

#8

thank u indraraj …