1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

don't close namespace menu on select

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-03-30 08:13:54 +03:00
parent f70be1da70
commit 1a31788e06

View File

@ -86,6 +86,7 @@ export class NamespaceSelectFilter extends React.Component {
return ( return (
<NamespaceSelect <NamespaceSelect
placeholder={placeholder} placeholder={placeholder}
closeMenuOnSelect={false}
isOptionSelected={() => false} isOptionSelected={() => false}
controlShouldRenderValue={false} controlShouldRenderValue={false}
onChange={({ value: namespace }: SelectOption) => toggleContext(namespace)} onChange={({ value: namespace }: SelectOption) => toggleContext(namespace)}
@ -102,4 +103,4 @@ export class NamespaceSelectFilter extends React.Component {
/> />
) )
} }
} }