commit
3b640f0a9f
5 changed files with 6 additions and 10 deletions
|
|
@ -70,6 +70,9 @@ export default {
|
|||
beforeUnmount() {
|
||||
window.removeEventListener('resize', this.onResize);
|
||||
},
|
||||
unmounted() {
|
||||
document.onkeydown = null;
|
||||
},
|
||||
computed: {
|
||||
backLink(){
|
||||
return this.getCmsContent(this.cmsWidgetName, 'BackButtonText');
|
||||
|
|
@ -89,6 +92,9 @@ export default {
|
|||
this.$refs.buttonMain.removeLoader();
|
||||
},
|
||||
buttonClick() {
|
||||
document.onkeydown = function (e) {
|
||||
return false;
|
||||
};
|
||||
this.$emit("ForwardClicked");
|
||||
},
|
||||
linkClick() {
|
||||
|
|
|
|||
|
|
@ -814,7 +814,6 @@ function setupMocks({
|
|||
damageLocationQuestion.methods.initializeComponent;
|
||||
|
||||
wrapper.vm.setCmsContent = baseMixin.methods.setCmsContent;
|
||||
wrapper.vm.blockKeyDownInputFromKeyboard = baseMixin.methods.blockKeyDownInputFromKeyboard;
|
||||
|
||||
return { wrapper, apiPromise };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -258,8 +258,6 @@ export default {
|
|||
},
|
||||
|
||||
async forwardButtonAction() {
|
||||
this.blockKeyDownInputFromKeyboard();
|
||||
|
||||
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
|
||||
|
||||
if (this.isWindshieldRepair){
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@ export default {
|
|||
|
||||
return store.dispatch(type, payload);
|
||||
},
|
||||
blockKeyDownInputFromKeyboard(){
|
||||
document.onkeydown = function (e) {
|
||||
return false;
|
||||
};
|
||||
},
|
||||
savePageDataToStore(page, data){
|
||||
store.commit(storeMutations.UPDATE_PAGE_DATA, { page: page, data: data });
|
||||
},
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ const routes = [
|
|||
path: "/",
|
||||
name: "root",
|
||||
async beforeEnter(to, from, next) {
|
||||
document.onkeydown = null;
|
||||
|
||||
// If we have no query string, or we don't have the FmgPage query string.
|
||||
if (to.query.fmgPage === undefined) {
|
||||
await GoToFunnelStartOn404(next);
|
||||
|
|
|
|||
Loading…
Reference in a new issue