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

    Issue with select using toggle and multiple in 0.15.12 (works in 0.15.10)

    Help
    1
    3
    555
    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.
    • Hawkeye64
      Hawkeye64 last edited by Hawkeye64

      I am having an issue where using q-select with attributes toggle and multiple do not show the toggle in the dropdown in 0.15.12, but works in 0.15.10.

      Here’s a fiddle with 0.15.10 showing it working. fiddle

      Unfortunately, I cannot find a CDN with 0.15.12 (or 0.15.11) so can only reproduce it in local code (which hasn’t changed since 0.15.9) so something broke along the way.

      Here’s the code:

        <q-field style="margin-top: 20px; margin-left: 20px;">
          <q-select
                    v-model="selected"
                    :options="options"
                    color="teal-6"
                    multiple
                    toggle
                    float-label="Cameras"
                    />
        </q-field>
      

      and the data:

        data: function () {
          return {
            selected: [],
            options: [
            	{ label: 'DCAM-8 - Thermal', value: 1 },
              { label: 'DCAM-8 - Color', value: 2 },
              { label: 'DTEST-2 - Thermal', value: 3 },
              { label: 'DTEST-2 - Color', value: 4 }
            ]
          }
        },
      

      Again, in 0.15.10 this is working. In 0.15.12 the toggle never shows up in the dropdown.

      I should mention, that in 0.15.12, that if you add the chips attribute, then it does work with the toggle, but I don’t want chips. 😞

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

        UPDATE This is actually working as expected. The toggles DO show. The control is on the right side of the page. There is an issue here, just not what I thought. When you are NOT using chips the text in the select, exceeds the width of the control and the dropdown that shows up is way off of the screen and therefore the toggles weren’t showing up.
        Still trying to figure out why the width of the control is growing with multiple text in the select and the ellipse class on the control is not working as expected.

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

          The fix is to add the max-width to the q-field:

            <q-field style="margin-top: 20px; margin-left: 20px; max-width: 100%;">
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post