No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Q-Input Strange Behavior Height Change IOS

    Framework
    1
    1
    185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jeremy-22 last edited by

      If I set the height of q-input in the class & input-class I can get the input to look the way I want it to. However, when I select the input number field to start typing, a larger blue border appears:

      6338e13b-e669-4362-b656-98406df6fa75-image.png

      2ba77690-8bea-4feb-a7f8-a51e97ce57c5-image.png

      Here’s the component:

      <template>
        <div>
          <q-input
            class="number-picker"
            input-class="number-picker-input"
            v-model="number"
            hide-bottom-space="true"
            dense
            outlined
            rounded
            bg-color="neutral"
            items-aligned
            pattern="[0-9]*"
            maxlength="3"
          />
        </div>
      </template>
      
      <script>
      export default {
        props: ['number'],
        watch: {
          number: function (newNumber, oldNumber) {
            this.$emit('number-changed', newNumber)
          }
        }
      }
      </script>
      
      <style>
      .number-picker {
        width: 50px;
        height: 30px;
        font-size: 13px;
      }
      .number-picker-input {
        height: 30px;
        text-align: center;
      }
      </style>
      
      

      Any tips?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post