Numeric keyboard



  • Hello all,
    I have a form with a numeric q-input declared as follow :

    <q-input type=“number” :decimals=“2” style=“color: black !important” suffix=“Kg” v-model=“variable” />

    when i’m building for iOS and I test on the phone, the keyboard displayed is the classic keyboard and not the numeric pad …

    What i’m doing wrong ?

    thanks for your help 🙂

    ps: this is not working with classic input too.



  • i’m using:
    pattern="[0-9]*"



  • thank you for your reply which works with integer values however I need a decimal keyboard … the only one solution for now I found is to use cordova-plugin-decimal-keyboard-wkwebview plugin … but it’s ugly and only work for ios … if someone have a better idea for decimal input …