Merge pull request #1885 from Safelite/feature/CSR-2124
Moved the code that appends the google autocomplete dropdown to the f…
This commit is contained in:
commit
5b904e323b
1 changed files with 3 additions and 2 deletions
|
|
@ -243,11 +243,11 @@ export default {
|
||||||
this.fillInAddress
|
this.fillInAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
// When the Street Address textbox receives focus,
|
// When the Street Address textbox receives input for the first time,
|
||||||
// append the search results list container to the bottom of the textbox
|
// append the search results list container to the bottom of the textbox
|
||||||
// and disable browser autofill
|
// and disable browser autofill
|
||||||
this.addressField1.addEventListener(
|
this.addressField1.addEventListener(
|
||||||
"focus",
|
"keydown",
|
||||||
(e) => {
|
(e) => {
|
||||||
// Make place results box stick to the input on scroll
|
// Make place results box stick to the input on scroll
|
||||||
const streetAddressField = document.getElementById("streetAddressField");
|
const streetAddressField = document.getElementById("streetAddressField");
|
||||||
|
|
@ -276,6 +276,7 @@ export default {
|
||||||
const addressFields = document.querySelectorAll(
|
const addressFields = document.querySelectorAll(
|
||||||
".address-questions input, .address-questions select"
|
".address-questions input, .address-questions select"
|
||||||
);
|
);
|
||||||
|
|
||||||
for (let addressField of addressFields) {
|
for (let addressField of addressFields) {
|
||||||
addressField.addEventListener("input", (e) => {
|
addressField.addEventListener("input", (e) => {
|
||||||
switch (e.inputType) {
|
switch (e.inputType) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue