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

    Invalid prop: custom validator check failed for prop "labelWidth"

    Help
    3
    4
    2839
    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.
    • N
      n.taddei last edited by

      @rstoenescu @s-molinari
      Even if I use it like described in docs, I still receive this Vue Warn that’s pretty noisy.

      Code sample:

      <q-field
        :helper="sliderHelper"
        :error="percentageExceed"
        :label="`Percentage: ${newPercentage}%`"
        :label-width="12" // <--------------------- HERE'S THE ISSUE!
        error-label="Attention: max total percentage must be 100%"
      >
        <q-slider v-model="newPercentage" :min="0" :max="100" label></q-slider>
      </q-field>
      

      Can this be fixed ASAP?
      Thanks, Niccolò

      1 Reply Last reply Reply Quote 0
      • P
        pdanpdan last edited by pdanpdan

        label-width should be 1<= val < 12. It’s not a width in pixels but a width in number of layout columns (12 based).
        As it’s a label for something it makes no sense to fill the whole space (12)

        1 Reply Last reply Reply Quote 3
        • N
          n.taddei last edited by

          Why shouldn’t make sense to fill the whole space? I want it always full width like mobile style…

          1 Reply Last reply Reply Quote 0
          • S
            spectrolite last edited by

            @n-taddei I tend to agree with you in principle, but I don’t understand your problem. Even without a width set, the label will be screenwide on mobile view. If you want it stacked in all screen sizes there’s float-label http://beta.quasar-framework.org/components/field.html#Stacked-Label-QInput

            if you still cannot achieve the desired output, please provide a screenshot/drawing to illustrate and we ll help you get there.

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