Skip to content

Commit

Permalink
fix(topicSelection): on-blur behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
bmartins-42 committed Oct 31, 2023
1 parent 58b86ee commit 5799c42
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/components/card/CardTopicSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ComboboxInput
@change="query = $event.target.value"
@blur="query = ''"
:display-value="() => query"
placeholder="Select a topic"
class="py-2 w-full bg-transparent border-b-2 dark:text-dark-special-text"
/>
Expand Down Expand Up @@ -110,4 +110,13 @@ const filteredTopics = computed(() => {
function isActiveTopic(topic: Topic) {
return value.value.includes(topic);
}
watch(
() => open.value,
() => {
if (!open.value) {
query.value = "";
}
}
);
</script>

0 comments on commit 5799c42

Please sign in to comment.