I am having an issue with handling value changes on focus and blur events in my input field. Here is the code snippet:
<input
v-model="totalAmount"
@focus="hideSymbol(totalAmount)"
@blur="showSymbol(totalAmount)"
/>
...
const totalAmount = ref('')
After defining functions hideSymbol
and showSymbol
, I encountered a problem where I received a warning message saying
The value assigned to 'val' is never used
. It seems like I missed something crucial in my learning process. Can anyone guide me on how to resolve this issue?
The desired outcome is to see the changed value in the input field upon focus and blur events.