[Vuejs]-Vuejs Disabled button when we didnt fill form

0๐Ÿ‘

โœ…

<b-form-group class="mb-0 mt-3" label-cols-lg="4">
            <button
             
              :disabled="form.ProjectNumber ==null || form.ProjectNumber == ''"
              class="w-100 btn btn-danger"
              size="sm"
              @click="RemoveProjectQuestion"
            > 
              Remove Project
            </button>

I Solve It

0๐Ÿ‘

You may try some thing like this in your button element
v-bind:class="[condition ? {classA} : {classB}]"

If your condition gets true add disabled class else you can pass active class to it

or vice versa based on your condition provided

Leave a comment