fix: Add missing dropdown method (#5830)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas 2022-11-09 17:27:04 -08:00 committed by GitHub
parent 4f82859bba
commit 865346223b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@
:variant="isActive(option) ? 'hollow' : 'clear'"
color-scheme="secondary"
:class="{
active: option.id === (selectedItem && selectedItem.id),
active: isActive(option),
}"
@click="() => onclick(option)"
>
@ -122,6 +122,9 @@ export default {
focusInput() {
this.$refs.searchbar.focus();
},
isActive(option) {
return this.selectedItem ? option.id === this.selectedItem.id : false;
},
},
};
</script>
@ -197,6 +200,7 @@ export default {
justify-content: space-between;
min-width: 0;
width: 100%;
align-items: center;
}
.name {