Reset form on modal closed
Reset form on modal closed
This commit is contained in:
parent
8cb7d264c3
commit
8287c5dc11
2 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ jest.mock("@/digital-components/modal/modal", () => ({
|
||||||
methods: {
|
methods: {
|
||||||
closeModal: jest.fn(),
|
closeModal: jest.fn(),
|
||||||
resetButtonStyle: jest.fn(),
|
resetButtonStyle: jest.fn(),
|
||||||
|
resetForm: jest.fn(),
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,7 @@ export default {
|
||||||
this.resetAlerts();
|
this.resetAlerts();
|
||||||
this.$emit("update:modelValue", this.lineItems);
|
this.$emit("update:modelValue", this.lineItems);
|
||||||
this.promoCode = "";
|
this.promoCode = "";
|
||||||
|
this.modal.resetForm();
|
||||||
},
|
},
|
||||||
focusOnPromoInput() {
|
focusOnPromoInput() {
|
||||||
const input = document.getElementById(this.promoTextInputId);
|
const input = document.getElementById(this.promoTextInputId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue