Skip to content

Commit

Permalink
fix(QuestionShort): Adjust properties
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 20, 2023
1 parent de5a595 commit b0f1e3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Questions/QuestionShort.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
:type="validationObject.inputType"
@input="onInput"
@keydown.enter.exact.prevent="onKeydownEnter">
<NcActions v-if="edit"
<NcActions v-if="!readOnly"
:id="validationTypeMenuId"
:aria-label="t('forms', 'Input types')"
:aria-label="t('forms', 'Input types (currently: {type})', { type: validationObject.label })"
:container="`#${validationTypeMenuId}`"
:open.sync="isValidationTypeMenuOpen"
class="validation-type-menu__toggle"
Expand Down Expand Up @@ -100,7 +100,7 @@ export default {
data() {
return {
validationTypes,
typeMenuOpen: false,
isValidationTypeMenuOpen: false,
}
},
computed: {
Expand Down Expand Up @@ -169,7 +169,7 @@ export default {
this.onExtraSettingsChange({ validationType, validationRegex: this.validationRegex })
} else {
// For all other types except regex we close the menu (for regex we keep it open to allow entering a regex)
this.typeMenuOpen = false
this.isValidationTypeMenuOpen = false
this.onExtraSettingsChange({ validationType: validationType === 'text' ? undefined : validationType })
}
},
Expand Down Expand Up @@ -210,7 +210,7 @@ export default {
*/
onSubmitRegex(event) {
if (this.onInputRegex(event)) {
this.typeMenuOpen = false
this.isValidationTypeMenuOpen = false
}
},
},
Expand Down

0 comments on commit b0f1e3f

Please sign in to comment.