Merge pull request #1571 from Safelite/feature/Digital/CSR-1837

Reset form on modal close
This commit is contained in:
hiteshkumar87 2023-11-27 15:05:20 +05:30 committed by GitHub
commit 9f2fb8d591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);