Skip to content

Commit f01e51f

Browse files
committed
prevent page reload on subtree load
1 parent ef3873c commit f01e51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const onItemClick = (e: MouseEvent) => {
6363
>
6464
<div v-if="item.entryMode === 'tree'" class="item-toggle">
6565
<SvgIcon v-if="isLoading" name="octicon-sync" class="circular-spin"/>
66-
<SvgIcon v-else :name="collapsed ? 'octicon-chevron-right' : 'octicon-chevron-down'" @click.stop="doLoadChildren"/>
66+
<SvgIcon v-else :name="collapsed ? 'octicon-chevron-right' : 'octicon-chevron-down'" @click.stop.prevent="doLoadChildren"/>
6767
</div>
6868
<div class="item-content">
6969
<!-- eslint-disable-next-line vue/no-v-html -->

0 commit comments

Comments
 (0)