Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Commit b272b1d

Browse files
committed
(159) fix chrome select bug
1 parent 8f45f25 commit b272b1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

root/static/js/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818

1919
Array.from(unitOptionElems).forEach(unitOptionElem => {
2020
if( Boolean( units_hash[ unitOptionElem.value ] ) ) {
21+
unitOptionElem.disabled = false; // if option was disabled, it must be enabled
2122
unitOptionElem.style.display = "block";
2223
unitOptionElem.selected = true;
2324
} else {
2425
unitOptionElem.style.display = "none";
26+
unitOptionElem.disabled = true; // unable option for selection
2527
}
2628
});
2729
}

0 commit comments

Comments
 (0)