auto expand child selections on Show Selected (#10125)

This commit is contained in:
Azri Kahar
2021-12-10 07:20:39 +08:00
committed by GitHub
parent f09862e865
commit 3df8122460

View File

@@ -161,6 +161,10 @@ export default defineComponent({
});
const groupOpen = computed(() => {
if (props.showSelectionOnly === true) {
return visibleChildrenValues.value.length > 0;
}
return typeof props.search === 'string' && props.search.length > 0;
});