CSR-1012 | reset modal on open
This commit is contained in:
parent
e0298b4fbf
commit
b405245ca9
1 changed files with 8 additions and 7 deletions
|
|
@ -13,8 +13,8 @@
|
|||
href="#!"
|
||||
data-bs-toggle="modal"
|
||||
:data-bs-target="getModalId"
|
||||
aria-label="Modal window"
|
||||
@click-event="focusOnZipInput" />
|
||||
aria-label="Modal window"
|
||||
@click-event="onModalOpen" />
|
||||
</div>
|
||||
</div>
|
||||
<modal
|
||||
|
|
@ -104,11 +104,12 @@ export default {
|
|||
this.$refs.zipCodeInputModal.resetButtonStyle();
|
||||
},
|
||||
|
||||
focusOnZipInput() {
|
||||
console.log("focusOnZipInput");
|
||||
var input = document.getElementById("serviceZipCodeInput");
|
||||
input.focus();
|
||||
// this.$refs.zipInputTextQuestion.focus();
|
||||
focusOnZipInput() {},
|
||||
|
||||
onModalOpen() {
|
||||
this.serviceZipCodeInput = this.serviceZip;
|
||||
this.resetsOnZipInput();
|
||||
this.focusOnZipInput();
|
||||
},
|
||||
|
||||
async setZip() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue