We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5370d6c commit eb677dbCopy full SHA for eb677db
packages/common-ui/src/components/studentInputs/RadioMultipleChoice.vue
@@ -122,7 +122,24 @@ export default defineComponent({
122
...Array.from({ length: this.choiceList.length }, (_, i) => ({
123
hotkey: (i + 1).toString(),
124
callback: () => this.setSelection(i),
125
- command: `Select option ${i + 1}`,
+ command: `Select ${((i) => {
126
+ switch (i) {
127
+ case 0:
128
+ return 'first';
129
+ case 1:
130
+ return 'second';
131
+ case 2:
132
+ return 'third';
133
+ case 3:
134
+ return 'fourth';
135
+ case 4:
136
+ return 'fifth';
137
+ case 5:
138
+ return 'sixth';
139
+ default:
140
+ return `${i + 1}th`;
141
+ }
142
+ })(i)} option`,
143
})),
144
]);
145
},
0 commit comments