Skip to content

Commit

Permalink
fix: terminal output not always autoscroll
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Dec 24, 2020
1 parent 9a39031 commit 2b33ae6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/scan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
</el-form-item>
</el-form>

<ul class="scan__log" v-chat-scroll>
<ul class="scan__log"
v-chat-scroll="{always: false, smooth: false}"
v-if="log.length > 0"
>
<li v-for="(line, index) in log" :key="index" v-html="line"></li>
</ul>

Expand Down

0 comments on commit 2b33ae6

Please sign in to comment.