mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
fix issue with checkbox state of select based search key
This commit is contained in:
@@ -221,6 +221,11 @@ class Search extends React.Component {
|
||||
showToolbarItem={searchKey === key}
|
||||
>
|
||||
{(options && (
|
||||
<Fragment>
|
||||
{/* TODO: update value to being object
|
||||
{ actualValue: optionKey, toString: () => label }
|
||||
currently a pf bug that makes the checked logic
|
||||
not work with object-based values */}
|
||||
<Select
|
||||
variant={SelectVariant.checkbox}
|
||||
aria-label={name}
|
||||
@@ -233,15 +238,10 @@ class Search extends React.Component {
|
||||
placeholderText={`Filter by ${name.toLowerCase()}`}
|
||||
>
|
||||
{options.map(([optionKey]) => (
|
||||
<Fragment key={optionKey}>
|
||||
{/* TODO: update value to being object
|
||||
{ actualValue: optionKey, toString: () => label }
|
||||
currently a pf bug that makes the checked logic
|
||||
not work with object-based values */}
|
||||
<SelectOption key={optionKey} value={optionKey} />
|
||||
</Fragment>
|
||||
))}
|
||||
</Select>
|
||||
</Fragment>
|
||||
)) ||
|
||||
(isBoolean && (
|
||||
<Select
|
||||
|
||||
Reference in New Issue
Block a user