mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
clear players when changing clubs
This commit is contained in:
@@ -99,7 +99,7 @@ const TeamSelection = ({ name, label, clubOptions, className }: IProps) => {
|
||||
placeholder="Select a club..."
|
||||
onChange={(option) => {
|
||||
field.onChange(option?.value);
|
||||
// Optional: Clear players if club changes, e.g. remove(0, fields.length)
|
||||
remove();
|
||||
}}
|
||||
value={clubOptions.find((c) => c.value === field.value)}
|
||||
classNames={{
|
||||
|
||||
Reference in New Issue
Block a user