Merge pull request #439 from Pax1601/small-bugfixes

Small bugfixes
This commit is contained in:
Pax1601
2023-10-06 16:08:38 +02:00
committed by GitHub
24 changed files with 10660 additions and 8903 deletions

View File

@@ -101,7 +101,7 @@ export class UnitControlPanel extends Panel {
this.#advancedSettingsDialog.classList.remove("hide");
});
/* This is for when a ctrl-click happens on the map for deselection and we need to remove the selected unit from the panel */
document.addEventListener( "unitDeselection", ( ev:CustomEventInit ) => {
document.addEventListener( "unitsDeselection", ( ev:CustomEventInit ) => {
this.getElement().querySelector( `button[data-unit-id="${ev.detail.ID}"]` )?.remove();
this.#updateRapidControls();
});