mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 14:40:58 -05:00
fix: do not trigger modal submission on <select>
This commit is contained in:
parent
de85527cd8
commit
46eec5a132
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue