From 61b77cef75b888774287839f84fab74f122706f6 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Sat, 9 Dec 2023 19:16:14 +0000 Subject: [PATCH] disallow selecting null value in required select inputs --- src/components/boards/BoardGame.tsx | 1 + src/components/common/GameInfo.tsx | 1 + src/components/home/Accounts.tsx | 5 +++- .../panels/analysis/EngineSettingsForm.tsx | 1 + src/components/panels/analysis/LogsPanel.tsx | 3 ++- .../panels/analysis/ReportModal.tsx | 2 ++ src/components/panels/info/FenInput.tsx | 1 + src/components/panels/info/RepertoireInfo.tsx | 1 + src/components/settings/SettingsSelect.tsx | 27 ++++++++++--------- src/components/tabs/ImportModal.tsx | 1 + 10 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/components/boards/BoardGame.tsx b/src/components/boards/BoardGame.tsx index a61662b7..0026e7b6 100644 --- a/src/components/boards/BoardGame.tsx +++ b/src/components/boards/BoardGame.tsx @@ -75,6 +75,7 @@ function EnginesSelect({ - + opening for setValue(v!)} - placeholder={placeholder} + const [value, setValue] = useAtom(atom); + return ( +