fix pass-time-label event stop propagation
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
role="button"
|
||||
tabindex="0"
|
||||
v-text="content"
|
||||
@click="toggle"
|
||||
@click.stop="toggle"
|
||||
@keydown.enter.space.prevent="toggle"
|
||||
/>
|
||||
</template>
|
||||
@@ -45,8 +45,9 @@ const content = computed(() => {
|
||||
return Time.toDateTime(timestamp.value);
|
||||
});
|
||||
|
||||
function toggle(): void {
|
||||
function toggle(event: MouseEvent | KeyboardEvent): void {
|
||||
showingDetail.value = !showingDetail.value;
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user