File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ export default {
203203 },
204204
205205 mixins: [QuestionMixin, QuestionMultipleMixin],
206+ emits: [' update:values' ],
206207
207208 data () {
208209 return {
Original file line number Diff line number Diff line change 7979 </NcCheckboxRadioSwitch >
8080 </div >
8181 <NcCheckboxRadioSwitch
82- :model-value =" hasMaxSubmissions "
82+ :modelValue =" hasMaxSubmissions "
8383 :disabled =" formArchived || locked "
8484 type="switch"
85- @update :model-value =" onMaxSubmissionsChange " >
85+ @update :modelValue =" onMaxSubmissionsChange " >
8686 {{ t('forms', 'Limit number of responses') }}
8787 </NcCheckboxRadioSwitch >
8888 <div
9494 :min =" 1 "
9595 :disabled =" locked "
9696 :label =" t (' forms' , ' Maximum number of responses' )"
97- @update :model-value =" onMaxSubmissionsValueChange " />
97+ @update :modelValue =" onMaxSubmissionsValueChange " />
9898 <p class =" settings-hint" >
9999 {{
100100 t(
108108 :modelValue =" hasMaxSubmissions "
109109 :disabled =" formArchived || locked "
110110 type="switch"
111- @update :model-value =" onMaxSubmissionsChange " >
111+ @update :modelValue =" onMaxSubmissionsChange " >
112112 {{ t('forms', 'Limit number of responses') }}
113113 </NcCheckboxRadioSwitch >
114114 <div
120120 :min =" 1 "
121121 :disabled =" locked "
122122 :label =" t (' forms' , ' Maximum number of responses' )"
123- @update :model-value =" onMaxSubmissionsValueChange " />
123+ @update :modelValue =" onMaxSubmissionsValueChange " />
124124 <p class =" settings-hint" >
125125 {{
126126 t(
Original file line number Diff line number Diff line change @@ -172,7 +172,6 @@ export default defineComponent({
172172 *
173173 * @param index the index of the answer
174174 * @param answer - The new answer option to be added.
175- * @return
176175 */
177176 onCreateAnswer ( index : number , answer : FormsOption ) : void {
178177 this . $nextTick ( ( ) => {
@@ -233,7 +232,7 @@ export default defineComponent({
233232 /**
234233 * Remove any empty options when leaving an option
235234 *
236- * @param optionType
235+ * @param optionType The type of options to validate
237236 */
238237 checkValidOption ( optionType : string ) {
239238 // When leaving edit mode, filter and delete empty options
You can’t perform that action at this time.
0 commit comments