Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
Css not getting applied on button
css ->
.disabled {
  pointer-events: none;
}

my template ->

<template v-slot:actions-slot="{ row }">
    <Button v-if="canManageDeliveryPlan" variant="tertiary" small @click="handleCreatePlanClick(row)">
     <span  v-bind:class="[row.shipmentStatus === 'CANCELLED' && row.deliveryOrderCount == 0 ? 'disabled' : '']">v-if="!row.wasModifiedByUser">Create plan</span>
      <span  v-bind:class="[row.shipmentStatus === 'CANCELLED' && row.deliveryOrderCount == 0 ? 'disables' : '']" v-if="row.wasModifiedByUser">Edit plan</span>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try to apply the class to the button element, not a span inside the button element.

<Button v-if="canManageDeliveryPlan" :class='myClass' variant="tertiary" small @click="handleCreatePlanClick(row)">
     
// computed ( or use a computed ref in vue3)
computed: {
 myClass() {
  const disabled = 
   row.shipmentStatus === 'CANCELLED' && row.deliveryOrderCount == 0
  return {disabled}
 }
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!