[Vuejs]-String to boolean type conversion problem in Vue

3👍

✅

you dont have to provide a value to auto-grow(presence of auto-grow prop indicates true and absence false). Just having auto-grow is enough. As in
<v-textarea auto-grow ></v-textarea>

2👍

Either use

<v-textarea :auto-grow="true"></v-textarea>

or

<v-textarea auto-grow></v-textarea>

The first one notifies that you are using a prop with initializing a value.
The second one just notifies you are using a default prop.

Leave a comment