Skip to content

Commit

Permalink
feat(SEG-3438): add min and max lenght on textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasantos committed Dec 8, 2023
1 parent d40b6f7 commit 231a7f5
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 231a7f5

Please sign in to comment.