Skip to content

fix(plugin-id/ui): keep dropdown list intact after value selection#26

Merged
fdaugan merged 1 commit into
feature/vuejsfrom
norman/fix-scope-dropdown-filter
May 19, 2026
Merged

fix(plugin-id/ui): keep dropdown list intact after value selection#26
fdaugan merged 1 commit into
feature/vuejsfrom
norman/fix-scope-dropdown-filter

Conversation

@Terracosmos
Copy link
Copy Markdown
Collaborator

Fix Vuetify v-autocomplete dropdown filter that was incorrectly
reducing the list to a single item after selection on edit views,
making it impossible to change the value later.

Cause

When the user picks a value, Vuetify re-emits the selected value's
name through @update:search. Our local filter (used because the
scope dataset is small and preloaded) interpreted this as a new search
query and reduced the list to just the selected item.

Fix

Ignore the @update:search event if the query matches the currently-
selected value. Tiny patch on filterScopes().

Files

  • CompanyEditView.vue (filterScopes)

…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.
@Terracosmos Terracosmos requested a review from fdaugan May 19, 2026 11:43
@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

@fdaugan fdaugan merged commit 48375fc into feature/vuejs May 19, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants