I have a custom component which is basically an input with some styles. I want to alert something when the user focuses out of the component. I added @blur and tabindex but it still doesn't alert anything. what's wrong with my code here? the custom component doesn't emit anything on blur though
<template>
<custom-component v-model="email" @blur="showSomething" tabindex="0"/>
</template>
<script>
export default{
data(){
return{
email
};
},
methods{
showSomething(){
alert('yes')
}
</script>