Skip to content

Commit

Permalink
#923: clear input after remove
Browse files Browse the repository at this point in the history
  • Loading branch information
lehju committed May 27, 2024
1 parent 2262d0b commit d975e2c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-autocomplete
v-model="selectedUsers"
:aria-required="isRequired()"
:auto-select-first="autoSelectFirst"
:auto-select-first="!screenreaderMode"
:class="[isReadonly() ? 'userInputReadonly' : 'userInput']"
:disabled="disabled"
:filter="filterUsers"
Expand Down Expand Up @@ -179,7 +179,7 @@ export default defineComponent({
const a11YNotificationEnabled = useAccessibility().a11YNotificationEnabled;
const autoSelectFirst = computed(() => !a11YNotificationEnabled());
const screenreaderMode = computed(() => !a11YNotificationEnabled());
watch(searchText, (newValue) => {
searchUsersBySearchString(newValue);
Expand Down Expand Up @@ -228,6 +228,7 @@ export default defineComponent({
selectedUsers.value = selectedUsers.value.filter(
(it) => it.lhmObjectId !== user.lhmObjectId
);
props.on.input(selectedUsers.value);
};
const mucatarUrl = (uid: string) => mucatarURL(uid);
Expand Down Expand Up @@ -284,7 +285,7 @@ export default defineComponent({
}
return {
autoSelectFirst,
screenreaderMode,
resetInput,
change,
getFullName,
Expand Down

0 comments on commit d975e2c

Please sign in to comment.