mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
changed select eventListeners from "input" to "change" (#318)
Although not an issue for most modern browsers, Microsoft Edge does not register "input" events on select Elements. Bugfix for issue #315. https://github.com/Azgaar/Fantasy-Map-Generator/issues/315
This commit is contained in:
parent
8ff1fe46b8
commit
b4dcfec86e
3 changed files with 7 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ function editProvinces() {
|
|||
if (cl.contains("icon-trash-empty")) removeProvince(p);
|
||||
});
|
||||
|
||||
body.addEventListener("input", function(ev) {
|
||||
body.addEventListener("change", function(ev) {
|
||||
const el = ev.target, cl = el.classList, line = el.parentNode, p = +line.dataset.id;
|
||||
if (cl.contains("cultureBase")) changeCapital(p, line, el.value);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue