Skip to content

Commit

Permalink
Merge pull request #192 from solfacil/feature/textarea-min-max-length
Browse files Browse the repository at this point in the history
[SEG-3437]: add min and max length on textarea
  • Loading branch information
rcasantos committed Dec 11, 2023
2 parents d40b6f7 + 231a7f5 commit c25d129
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/Textarea/Textarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
:name="name"
:placeholder="placeholder"
:value="value"
:minlength="minlength"
:maxlength="maxlength"
@input="$emit('input', $event.target.value)"
@keyup.enter="handleEvent($event.target.value)"
/>
Expand Down Expand Up @@ -108,6 +110,18 @@ export default {
type: Boolean,
default: false,
},
/** Specify a min length */
minlength: {
type: String,
default: null,
},
/** Specify a max length */
maxlength: {
type: String,
default: null,
},
},
data() {
Expand Down

0 comments on commit c25d129

Please sign in to comment.