swap out keypress for keydown
This commit is contained in:
parent
f5d46be983
commit
a28f1f1cfb
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
tabindex="-1"
|
||||
aria-labelledby="ModalComponentLabel"
|
||||
aria-hidden="true"
|
||||
@keypress.enter="onEnter"
|
||||
@keydown.enter="onKeyDown"
|
||||
v-on="{
|
||||
'hidden.bs.modal': onModalClosed,
|
||||
'shown.bs.modal': onModalOpened
|
||||
|
|
@ -107,7 +107,7 @@ export default {
|
|||
this.resetButtonStyle();
|
||||
}
|
||||
},
|
||||
async onEnter(e) {
|
||||
async onKeyDown(e) {
|
||||
e.preventDefault();
|
||||
document.getElementById('modalbtn')?.focus();
|
||||
this.$refs.modalButtonMain.clicked();
|
||||
|
|
|
|||
Loading…
Reference in a new issue