diff --git a/ui/src/components/view/DetailSettings.vue b/ui/src/components/view/DetailSettings.vue index 1581c2daef8..9f808b907c7 100644 --- a/ui/src/components/view/DetailSettings.vue +++ b/ui/src/components/view/DetailSettings.vue @@ -39,7 +39,7 @@ { @@ -188,7 +188,12 @@ export default { this.updateResource(this.resource) }, methods: { - filterOption (input, option) { + filterOption (input, option, filterType) { + if ((filterType === 'key' && !this.newKey) || + (filterType === 'value' && !this.newValue)) { + return true + } + return ( option.value.toUpperCase().indexOf(input.toUpperCase()) >= 0 )