mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-10 05:06:15 -05:00
Merge pull request #949 from DoubleCookies/i-946
Other default value + empty onChange
This commit is contained in:
@@ -379,8 +379,11 @@ function Abilities() {
|
||||
value={
|
||||
abilities.flat().every((a) => a !== "UNKNOWN")
|
||||
? JSON.stringify(abilities)
|
||||
: undefined
|
||||
: []
|
||||
}
|
||||
// empty onChange is because otherwise it will give a React error in console
|
||||
// readOnly can't be set as then validation is not active
|
||||
onChange={() => null}
|
||||
required
|
||||
/>
|
||||
<AbilitiesSelector
|
||||
|
||||
Reference in New Issue
Block a user