mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: do not trigger modal submission on <select>
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user