All a click in an unselected item to immediately select
This commit is contained in:
parent
d7c07fc65f
commit
aee9bb9267
1 changed files with 3 additions and 1 deletions
|
|
@ -163,8 +163,10 @@ const emit = defineEmits<Emits>();
|
|||
const handleClick = (id: string) => {
|
||||
if (props.selectedId == null) {
|
||||
emit("select", id);
|
||||
} else {
|
||||
} else if (props.selectedId == id) {
|
||||
emit("deselect", id);
|
||||
} else {
|
||||
emit("select", id);
|
||||
}
|
||||
};
|
||||
const searchFilter = ref("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue