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

    Label not displaying in QSelect if in toolbar

    Help
    3
    8
    481
    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.
    • I
      Isaac last edited by

      Hi! I’m attempting to display a QSelect in a QToolbar with a label (<q-select :options="options" v-model="model" label="Test" filled/>) inside a QToolbar

      When I do so, the label doesn’t display until I select an option (which may not always be available!)

      Prior to selecting something:
      de9725f8-2d10-498e-b102-30b62f6a12de-image.png

      After:
      c7f35fb3-7050-4844-bc74-d56a5d865e26-image.png

      Has anyone found a workaround for this issue? Thanks!

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

        @isaac the label has same color as your toolbar background, use dark prop on your qinput.

        I 1 Reply Last reply Reply Quote 0
        • I
          Isaac @metalsadman last edited by Isaac

          @metalsadman Dark? It’s not there regardless of the color of the label – in the inspector, it even has 0 width for some reason.

          Also, how can I adjust the styling of the qinput despite using the qselect? (assuming thats possible w/o css, anyway) I know you can change the label color of the qselect, but that makes no change until I select an option.

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @Isaac last edited by

            @isaac

            Please create a codepen to demo you problem.

            I 1 Reply Last reply Reply Quote 0
            • I
              Isaac @dobbel last edited by

              @dobbel Codepen as follows: https://codepen.io/isaacporter/pen/dyOVOwJ

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

                @isaac just set a width on your q-select.

                I 1 Reply Last reply Reply Quote 0
                • I
                  Isaac @metalsadman last edited by

                  @metalsadman Is there no way to have the width inherit the largest available option like normal selects? or do I have to generate the width manually(re: automatically) with JS by calculating extents? Seems weird for a UI framework to require that.

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

                    @isaac check the underlying css.

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