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