[Vuejs]-Enable button when options are changed after data is received from API vue.js without lodash

0👍

bind some condition to the attribute disabled on the button:

<script setup>
import { ref } from 'vue'
const colors = ref<[] | undefined>(undefined)
</script>

<template>
   <button :disabled="colors != undefined"></button>
</template>

Leave a comment