Skip to content

Commit

Permalink
Fix issue Pressing Enter makes Astroid UI inaccessible #454
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Nov 22, 2023
1 parent 4723e0a commit 03c6bcf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions assets/vendor/manager/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/vendor/manager/src/components/helpers/Fields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function updateContentLayout() {
}
</script>
<template>
<input v-if="props.field.input.type === `astroidtext`" v-model="props.scope[props.field.name]" type="text" :id="props.field.input.id" :name="props.field.input.name" class="astroid-text form-control" :aria-label="props.field.label" :placeholder="props.field.input.hint">
<input v-if="props.field.input.type === `astroidtext`" v-model="props.scope[props.field.name]" type="text" :id="props.field.input.id" :name="props.field.input.name" class="astroid-text form-control" @keydown.prevent="" :aria-label="props.field.label" :placeholder="props.field.input.hint">
<select v-else-if="props.field.input.type === `astroidlist`" v-model="props.scope[props.field.name]" :id="props.field.input.id" :name="props.field.input.name" class="astroid-list form-select" :aria-label="props.field.label">
<option v-for="option in props.field.input.options" :key="option.value" :value="option.value">{{ option.text }}</option>
</select>
Expand Down
2 changes: 1 addition & 1 deletion assets/vendor/manager/src/components/helpers/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function saveModal(){
}
</script>
<template>
<div class="astroid-modal modal d-block" :id="props.element.type+`-`+props.element.id" tabindex="-1" @click.self="emit('update:closeElement')">
<div class="astroid-modal modal d-block" :id="props.element.type+`-`+props.element.id" tabindex="-1" aria-hidden="true" @click.self="emit('update:closeElement')">
<div class="modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="position-absolute top-0 end-0 p-3">
Expand Down

0 comments on commit 03c6bcf

Please sign in to comment.