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 (#175)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Cody Belcher <cody.t.belcher@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-03-30 16:30:47 +03:00 committed by Cody Belcher
parent f4e7e0fbe8
commit 39424c5356

View File

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