Skip to content

Commit ed61388

Browse files
committed
refactor: smaller improvements
1 parent e322c40 commit ed61388

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/components/VueCommand.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</div>
4141
</template>
4242

43-
<script setup lang="js">
43+
<script setup>
4444
import {
4545
ref,
4646
defineExpose,
@@ -104,6 +104,7 @@ const props = defineProps({
104104
},
105105
106106
helpText: {
107+
default: null,
107108
required: false,
108109
type: String
109110
},

src/components/VueCommandQuery.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
@keydown.ctrl.r.exact.prevent="reverseISearch"
2424
@keyup.arrow-left.exact="setCursorPosition($refs.queryRef.selectionStart)"
2525
@keyup.arrow-right.exact="setCursorPosition($refs.queryRef.selectionStart)"
26-
@keyup.enter.exact="submit" />
26+
@keyup.enter.exact="submit">
2727
</div>
2828
</template>
2929

30-
<script setup lang="js">
30+
<script setup>
3131
import {
3232
ref,
3333
onMounted,
@@ -138,6 +138,8 @@ const autocompleteQuery = async () => {
138138
appendToHistory(createStdout(listFormatter(...commands)))
139139
140140
// We have to wait for the query to be loaded
141+
// TODO Maybe listen to some event, indicating that the query has been
142+
// mounted
141143
await nextTick()
142144
143145
// Overwrite new query with old one

0 commit comments

Comments
 (0)