fix lot select to show lot on edit
parent
b9454bcd9c
commit
7f73f41f90
|
|
@ -213,7 +213,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
lotNameFilterElement.value = currentLotName;
|
||||
lotNameFilterElement.focus();
|
||||
lotNameFilterElement.addEventListener("change", searchLots);
|
||||
modalElement.querySelector("#lotSelect--occupancyStatus").addEventListener("change", searchLots);
|
||||
const occupancyStatusFilterElement = modalElement.querySelector("#lotSelect--occupancyStatus");
|
||||
occupancyStatusFilterElement.addEventListener("change", searchLots);
|
||||
if (currentLotName !== "") {
|
||||
occupancyStatusFilterElement.value = "";
|
||||
}
|
||||
lotSelectFormElement = modalElement.querySelector("#form--lotSelect");
|
||||
lotSelectResultsElement = modalElement.querySelector("#resultsContainer--lotSelect");
|
||||
lotSelectFormElement.addEventListener("submit", (submitEvent) => {
|
||||
|
|
|
|||
|
|
@ -319,7 +319,12 @@ declare const bulmaJS: BulmaJS;
|
|||
lotNameFilterElement.focus();
|
||||
lotNameFilterElement.addEventListener("change", searchLots);
|
||||
|
||||
modalElement.querySelector("#lotSelect--occupancyStatus").addEventListener("change", searchLots);
|
||||
const occupancyStatusFilterElement = modalElement.querySelector("#lotSelect--occupancyStatus") as HTMLSelectElement;
|
||||
occupancyStatusFilterElement.addEventListener("change", searchLots);
|
||||
|
||||
if (currentLotName !== "") {
|
||||
occupancyStatusFilterElement.value = "";
|
||||
}
|
||||
|
||||
lotSelectFormElement = modalElement.querySelector("#form--lotSelect");
|
||||
lotSelectResultsElement = modalElement.querySelector("#resultsContainer--lotSelect");
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue