Reset form on modal closed

Reset form on modal closed
This commit is contained in:
hiteshkumar87 2023-11-27 14:59:01 +05:30
parent 8cb7d264c3
commit 8287c5dc11
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ jest.mock("@/digital-components/modal/modal", () => ({
methods: {
closeModal: jest.fn(),
resetButtonStyle: jest.fn(),
resetForm: jest.fn(),
},
}));

View file

@ -169,6 +169,7 @@ export default {
this.resetAlerts();
this.$emit("update:modelValue", this.lineItems);
this.promoCode = "";
this.modal.resetForm();
},
focusOnPromoInput() {
const input = document.getElementById(this.promoTextInputId);