From ff69d60e174c2767ce4bcd01cac4903ff0792c2f Mon Sep 17 00:00:00 2001 From: MichelleAntunes Date: Wed, 23 Sep 2026 14:14:49 +0200 Subject: [PATCH] fix(context-chat): remove non-functional deselect button from source list The sources list reused NcSelect (a multi-select form component) purely for its icon+avatar+label chip styling. In multiple mode, vue-select always renders a deselect (x) button on each chip, and NcSelect exposes no prop to disable it. Since this list is read-only (not an actual selection to edit), the button did nothing when clicked -- a non-functional, misleading control that also stayed focusable and screen-reader-exposed via its title attribute. Replace NcSelect with NcChip (:no-close="true"), a component purpose-built for read-only chip display and available since @nextcloud/vue 8.23.0. Scoped styles are adjusted to keep the original bordered, scrollable list container. Signed-off-by: MichelleAntunes --- .../ContextChat/ContextChatOutputForm.vue | 95 ++++++++----------- 1 file changed, 37 insertions(+), 58 deletions(-) diff --git a/src/components/ContextChat/ContextChatOutputForm.vue b/src/components/ContextChat/ContextChatOutputForm.vue index 3ba359b60..aa180e319 100644 --- a/src/components/ContextChat/ContextChatOutputForm.vue +++ b/src/components/ContextChat/ContextChatOutputForm.vue @@ -12,48 +12,32 @@ :is-output="true" />
-