Skip to content

Commit

Permalink
Update Home.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
TransparentLC committed Nov 16, 2024
1 parent 1083dc5 commit dea86c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
<v-icon>{{mdiPlus}}</v-icon>
</v-btn>
</template>
<v-btn fab dark small color="primary" @click="dialog = true; mode = 'file'; $nextTick(() => $refs.dialogFile.focus())">
<v-btn fab dark small color="primary" @click="dialog = true; mode = 'file'; setTimeout(() => $refs.dialogFile.focus(), 300)">
<v-icon>{{mdiFileDocumentOutline}}</v-icon>
</v-btn>
<v-btn fab dark small color="primary" @click="dialog = true; mode = 'text'; $nextTick(() => $refs.dialogText.focus())">
<v-btn fab dark small color="primary" @click="dialog = true; mode = 'text'; setTimeout(() => $refs.dialogText.focus(), 300)">
<v-icon>{{mdiText}}</v-icon>
</v-btn>
</v-speed-dial>
Expand Down Expand Up @@ -102,6 +102,9 @@ export default {
closeDialog() {
this.dialog = false;
},
setTimeout(f, t) {
return setTimeout(f, t);
},
},
watch: {
dialog(newval) {
Expand Down

0 comments on commit dea86c9

Please sign in to comment.