fix pass-time-label event stop propagation

This commit is contained in:
Timi
2026-08-29 23:22:42 +08:00
parent cf62eb2d41
commit 5be15c49f2
+3 -2
View File
@@ -6,7 +6,7 @@
role="button" role="button"
tabindex="0" tabindex="0"
v-text="content" v-text="content"
@click="toggle" @click.stop="toggle"
@keydown.enter.space.prevent="toggle" @keydown.enter.space.prevent="toggle"
/> />
</template> </template>
@@ -45,8 +45,9 @@ const content = computed(() => {
return Time.toDateTime(timestamp.value); return Time.toDateTime(timestamp.value);
}); });
function toggle(): void { function toggle(event: MouseEvent | KeyboardEvent): void {
showingDetail.value = !showingDetail.value; showingDetail.value = !showingDetail.value;
event.stopPropagation();
} }
</script> </script>