From ec3172f61ed3220892621db992d8c77df1199f19 Mon Sep 17 00:00:00 2001 From: Johan Gunawan Date: Thu, 22 Dec 2022 22:43:05 -0500 Subject: [PATCH] Specify inputId prop as required Specify inputId prop as required. This will help devs who uses TextboxQuestion component to know that the prop needs a value otherwise the component will throw an error and not rendered. --- .../textbox-question/textbox-question.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common-components/textbox-question/textbox-question.vue b/src/common-components/textbox-question/textbox-question.vue index 1779953a..6e047100 100644 --- a/src/common-components/textbox-question/textbox-question.vue +++ b/src/common-components/textbox-question/textbox-question.vue @@ -65,7 +65,10 @@ export default { default: "", }, modelValue: String, - inputId: String, + inputId: { + type: String, + required: true, + }, isDisabled: Boolean, isRequired: Boolean, hasIcon: Boolean, // If input has an icon @@ -122,7 +125,7 @@ export default { }; }, computed: { - questionText() { + questionText() { return this.getCmsContent(this.cmsWidgetName, "QuestionText"); }, value: {