fix pass-time-label event stop propagation
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user