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.
This commit is contained in:
Johan Gunawan 2022-12-22 22:43:05 -05:00
parent 93995c2b42
commit ec3172f61e

View file

@ -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: {