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

    Hide qinput arrows when type=number

    Framework
    3
    4
    2388
    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.
    • B
      bfreed last edited by bfreed

      Using QInputs on both iPads and desktop.
      Setting type=“number” fixes my iPad annoyance - it brings the keyboard up in number mode, yay!
      Looks great, too.
      But on desktop, there are these arrow icons. I can live with it on Chrome, as they only show up when the cell is active.
      But on Firefox they’re always visible and pretty rough:

      a710ff9f-7df0-4b20-b225-cf90dee08b89-image.png

      Anyone know a trick to disable/hide them?

      (just to be clear: I’m not saying it’s a bug, or Quasar’s fault - I’m a novice… Is there a CSS trick or something that’s super obvious to everyone else?)

      1 Reply Last reply Reply Quote 1
      • s.molinari
        s.molinari last edited by

        Not sure it is the best solution. But, I found it on the Internet and testing quickly with Chrome, it looks like it works.

        https://codepen.io/smolinari/pen/pmdLrZ

        Scott

        B 1 Reply Last reply Reply Quote 3
        • B
          bfreed @s.molinari last edited by

          @s-molinari Perfect! Thank you!

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

            Just a note: Be sure the style is not scoped to your component.
            In Electron this works:

            <style>
            input[type="number"]::-webkit-outer-spin-button,
              input[type="number"]::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
              }
            </style>
            

            But, <style scoped>…</style> doesn’t.

            Scoping the style appears to work in browsers, but failed for me in Electron.

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