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

    How to get rid of scrollbar in QInput when using autogrow

    Help
    3
    5
    881
    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.
    • E
      eoinom last edited by

      I am using a q-input with autogrow however a scrollbar is showing for some reason. Any ideas why this might be and how to get rid of it?

      <template>
        <div class="row q-mb-sm">        
          <q-input 
            autofocus
            outlined 
            clearable
            autogrow
            :value="name" 
            ref="name" 
            class="col"
            label="Account name"
            @input="$emit('update:name', $event)"
            :rules="[val => !!val || 'Field is required']" 
          />
        </div>    
      </template>
      
      <script>
        export default {
            props: ['name']
        }
      </script>
      
      1 Reply Last reply Reply Quote 0
      • R
        rjp last edited by

        same here…

        1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman last edited by

          @rjp you can with css https://stackoverflow.com/questions/19424887/remove-scrollbars-from-textarea, tho i tried the code above https://codepen.io/metalsadman/pen/QWLzJzV?editors=1010, and see no scrollbars on chrome/firefox.

          R 1 Reply Last reply Reply Quote 0
          • R
            rjp @metalsadman last edited by rjp

            @metalsadman Yeah I tried the css no luck. It is very strange. I have a few panels with autogrow fields working as designed - just in this one even if I copy a working one to this panel it shows the scroll.

            Nothing in my <style> tags - just template and script.

            The problem field is in a list, in an expansion panel…
            The working autogrow fields are in a list, in a stepper

            I’ve tried everything - even when I replace autogrow with type="textarea" the textarea starts out with scroll bars without any text input.

            Anyway, just going to leave plain text input now - come back later when I have time to stare at it some more. delivery due now…

            Thanks for helping though

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman last edited by

              @rjp it’s related to this then https://github.com/quasarframework/quasar/issues/3953.

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