From 231a7f53365ed57d2fc38482fd2b4e87c04e095f Mon Sep 17 00:00:00 2001 From: rcasantos <79152600+rcasantos@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:01:53 -0300 Subject: [PATCH] feat(SEG-3438): add min and max lenght on textarea --- src/components/Textarea/Textarea.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/components/Textarea/Textarea.vue b/src/components/Textarea/Textarea.vue index cf6114cd..b5aca861 100644 --- a/src/components/Textarea/Textarea.vue +++ b/src/components/Textarea/Textarea.vue @@ -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)" /> @@ -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() {