From 1967fae817d5e3189321e931d12071e8f6fada56 Mon Sep 17 00:00:00 2001 From: Norman Niati Date: Tue, 19 May 2026 12:23:33 +0200 Subject: [PATCH] fix(plugin-id/ui): keep full scope list visible after a selection on Company edit When the user picks a scope, Vuetify echoes the selected name back through @update:search; the local filter then narrows the dropdown to just that one item, and re-opening the dropdown shows only the already-selected scope, blocking the user from switching to another one. Treat the case where the query equals the currently selected name as "no filter" so the full list stays visible on re-open. --- ui/src/views/CompanyEditView.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/views/CompanyEditView.vue b/ui/src/views/CompanyEditView.vue index 02138e2..3b2192f 100644 --- a/ui/src/views/CompanyEditView.vue +++ b/ui/src/views/CompanyEditView.vue @@ -167,7 +167,11 @@ function onScopeSearch(query) { } function filterScopes(query) { - if (!query) { + // After picking a scope, Vuetify echoes the selected name back through + // @update:search — if we treat that as a filter query we narrow the list + // to just the picked item and the user can't switch to another scope on + // re-open. Treat it as "show everything" instead. + if (!query || query === form.value.scope) { scopeResults.value = scopeAll.value return }