fix(shared): Handle multi-select status
This commit is contained in:
parent
7466aec79c
commit
f32a3ade6e
1 changed files with 7 additions and 1 deletions
|
@ -239,7 +239,13 @@ export const ListInput = ({ name, config, current, updateFunc, compact = false,
|
||||||
return (
|
return (
|
||||||
<ButtonFrame
|
<ButtonFrame
|
||||||
key={entry}
|
key={entry}
|
||||||
active={changed ? current === entry : entry === config.dflt}
|
active={
|
||||||
|
changed
|
||||||
|
? Array.isArray(current)
|
||||||
|
? current.includes(entry)
|
||||||
|
: current === entry
|
||||||
|
: entry === config.dflt
|
||||||
|
}
|
||||||
onClick={() => handleChange(entry)}
|
onClick={() => handleChange(entry)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue