Fix active tab not updating on prop change (#2712)

This commit is contained in:
Anbraten
2023-11-03 16:01:14 +01:00
committed by GitHub
parent fd8f35a879
commit fe489287fc
6 changed files with 42 additions and 43 deletions

View File

@@ -62,7 +62,10 @@ const props = defineProps<{
search?: string;
fullWidth?: boolean;
}>();
defineEmits(['update:search']);
defineEmits<{
(event: 'update:search', query: string): void;
}>();
const searchBoxPresent = props.search !== undefined;
</script>