fix: do not trigger modal submission on <select>

pull/1049/head
Paul Makles 2023-02-22 17:00:47 +01:00
parent 57be4e39bc
commit a854d070c2
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export default observer(() => {
if (event.key === "Escape") {
modalController.pop("close");
} else if (event.key === "Enter") {
if (event.target instanceof HTMLSelectElement) return;
modalController.pop("confirm");
}
}