mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 20:49:24 -02:30
fix issue with checkbox state of select based search key
This commit is contained in:
@@ -221,27 +221,27 @@ class Search extends React.Component {
|
|||||||
showToolbarItem={searchKey === key}
|
showToolbarItem={searchKey === key}
|
||||||
>
|
>
|
||||||
{(options && (
|
{(options && (
|
||||||
<Select
|
<Fragment>
|
||||||
variant={SelectVariant.checkbox}
|
{/* TODO: update value to being object
|
||||||
aria-label={name}
|
{ actualValue: optionKey, toString: () => label }
|
||||||
onToggle={this.handleFilterDropdownToggle}
|
currently a pf bug that makes the checked logic
|
||||||
onSelect={(event, selection) =>
|
not work with object-based values */}
|
||||||
this.handleFilterDropdownSelect(key, event, selection)
|
<Select
|
||||||
}
|
variant={SelectVariant.checkbox}
|
||||||
selections={chipsByKey[key].chips}
|
aria-label={name}
|
||||||
isExpanded={isFilterDropdownOpen}
|
onToggle={this.handleFilterDropdownToggle}
|
||||||
placeholderText={`Filter by ${name.toLowerCase()}`}
|
onSelect={(event, selection) =>
|
||||||
>
|
this.handleFilterDropdownSelect(key, event, selection)
|
||||||
{options.map(([optionKey]) => (
|
}
|
||||||
<Fragment key={optionKey}>
|
selections={chipsByKey[key].chips}
|
||||||
{/* TODO: update value to being object
|
isExpanded={isFilterDropdownOpen}
|
||||||
{ actualValue: optionKey, toString: () => label }
|
placeholderText={`Filter by ${name.toLowerCase()}`}
|
||||||
currently a pf bug that makes the checked logic
|
>
|
||||||
not work with object-based values */}
|
{options.map(([optionKey]) => (
|
||||||
<SelectOption key={optionKey} value={optionKey} />
|
<SelectOption key={optionKey} value={optionKey} />
|
||||||
</Fragment>
|
))}
|
||||||
))}
|
</Select>
|
||||||
</Select>
|
</Fragment>
|
||||||
)) ||
|
)) ||
|
||||||
(isBoolean && (
|
(isBoolean && (
|
||||||
<Select
|
<Select
|
||||||
|
|||||||
Reference in New Issue
Block a user