From 6477986688bec94b67cb6db493195a739ff4f5f3 Mon Sep 17 00:00:00 2001 From: Julia Lehmann Date: Mon, 27 May 2024 15:23:48 +0200 Subject: [PATCH] #923: add screenreader support to user input --- .../src/components/schema/VMultiUserInput.vue | 4 +- .../src/components/schema/VUserInput.vue | 72 +++++++++++-------- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VMultiUserInput.vue b/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VMultiUserInput.vue index 2d01518cb..fafc901d9 100644 --- a/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VMultiUserInput.vue +++ b/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VMultiUserInput.vue @@ -179,7 +179,7 @@ export default defineComponent({ const a11YNotificationEnabled = useAccessibility().a11YNotificationEnabled; - const screenreaderMode = computed(() => !a11YNotificationEnabled()); + const screenreaderMode = computed(() => a11YNotificationEnabled()); watch(searchText, (newValue) => { searchUsersBySearchString(newValue); @@ -228,7 +228,7 @@ export default defineComponent({ selectedUsers.value = selectedUsers.value.filter( (it) => it.lhmObjectId !== user.lhmObjectId ); - props.on.input(selectedUsers.value); + change(); }; const mucatarUrl = (uid: string) => mucatarURL(uid); diff --git a/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VUserInput.vue b/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VUserInput.vue index dadd87238..dbbf3219a 100644 --- a/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VUserInput.vue +++ b/digiwf-apps/packages/apps/digiwf-tasklist/src/components/schema/VUserInput.vue @@ -1,6 +1,9 @@