Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/components/form-textarea/FormTextarea.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<textarea
ref="input"
v-model="localValue"
:class="[
plaintext ? 'form-control-plaintext' : 'form-control',
plaintext ? 'w-100' : '',
Expand All @@ -19,7 +20,6 @@
:wrap="wrap"
:aria-required="required ? 'true' : null"
:aria-invalid="computedAriaInvalid"
@input="handleInput"
></textarea>
</template>

Expand All @@ -34,6 +34,13 @@ export default {
};
},
props: {
/**
* The element value.
*/
value: {
type: String,
default: ''
},
/**
* The element name.
*/
Expand Down Expand Up @@ -241,10 +248,5 @@ export default {
}
}
},
methods: {
handleInput(e) {
this.localValue = e.target.value;
}
}
};
</script>