CSR-2308
This commit is contained in:
parent
c5ff1ee876
commit
cf9aa0d43d
1 changed files with 10 additions and 0 deletions
|
|
@ -73,6 +73,11 @@ export default {
|
|||
resetForm,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isEnterClicked: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
async validateAndEmit() {
|
||||
const validationResult = await this.validate();
|
||||
|
|
@ -84,9 +89,14 @@ export default {
|
|||
},
|
||||
async onEnter(e) {
|
||||
e.preventDefault();
|
||||
if (this.isEnterClicked) return;
|
||||
this.isEnterClicked = true;
|
||||
document.getElementById("modalbtn")?.focus();
|
||||
this.$refs.modalButtonMain.clicked();
|
||||
document.getElementById(this.modalId)?.focus();
|
||||
setTimeout(() => {
|
||||
this.isEnterClicked = false;
|
||||
}, 2000);
|
||||
},
|
||||
resetButtonStyle() {
|
||||
this.$refs.modalButtonMain?.resetButtonStyle();
|
||||
|
|
|
|||
Loading…
Reference in a new issue