CSR-478 Block keyboard input after button click

This commit is contained in:
CarlNation 2022-04-11 09:33:33 -04:00
parent ebfbd8dbdb
commit 047d8adacf
2 changed files with 7 additions and 0 deletions

View file

@ -258,6 +258,8 @@ export default {
},
async forwardButtonAction() {
this.blockKeyboard();
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
if (this.isWindshieldRepair){

View file

@ -25,6 +25,11 @@ export default {
return store.dispatch(type, payload);
},
blockKeyboard(){
document.onkeydown = function (e) {
return false;
};
},
savePageDataToStore(page, data){
store.commit(storeMutations.UPDATE_PAGE_DATA, { page: page, data: data });
},