From e6bcf24864b217a8ac51f66b5a69bf9e3d73315d Mon Sep 17 00:00:00 2001 From: Siddharth Ramesh Date: Thu, 30 Sep 2021 22:07:20 +0530 Subject: [PATCH] chore: Add readonly attribute to woot-input component (#3119) --- app/javascript/dashboard/components/widgets/forms/Input.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/javascript/dashboard/components/widgets/forms/Input.vue b/app/javascript/dashboard/components/widgets/forms/Input.vue index 7322cda77..09aba7f2f 100644 --- a/app/javascript/dashboard/components/widgets/forms/Input.vue +++ b/app/javascript/dashboard/components/widgets/forms/Input.vue @@ -5,6 +5,7 @@ :value="value" :type="type" :placeholder="placeholder" + :readonly="readonly" @input="onChange" @blur="onBlur" /> @@ -42,6 +43,10 @@ export default { type: String, default: '', }, + readonly: { + type: Boolean, + deafaut: false, + }, }, methods: { onChange(e) {