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

Ionic 5 IonInput maxlength not working for real device android and IOS

$
0
0

In Ionic React maxlength not working for IonInput.Working on browser but not in real device(IOS and android).Try Some solution but not working.

  <IonInput
    //name="options"
      type="text"
      value={text}
      onIonChange={(e) =>{ setText(e.detail.value!);console.log(text);}}
      placeholder="OPTION"
      required
      onKeyPress={(e)=>{e.key === "Enter" && e.preventDefault();}}
      enterkeyhint= "enter"
      maxlength={50}
  ></IonInput>

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48981

Trending Articles



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