Show dropdown groupable (#4202)

Fixes #4193
This commit is contained in:
YannickMol
2021-02-22 16:27:50 +01:00
committed by GitHub
parent 3cedef6d13
commit c66fec0c6d

View File

@@ -71,13 +71,16 @@ export function useGroupable(options?: GroupableOptions) {
return {
active,
toggle: () => {
active.value = !active.value;
toggle(item);
},
activate: () => {
if (active.value === false) toggle(item);
active.value = true;
},
deactivate: () => {
if (active.value === true) toggle(item);
active.value = false;
},
};
}