Skip to content

Commit

Permalink
Fix auto-focussing input fields on git action popup open
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Nov 29, 2024
1 parent 0c356d2 commit dce6bfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/views/GitInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ let text_changed = computed(() =>
let params_input_refs = /** @type {Readonly<Vue.ShallowRef<Array<HTMLInputElement>>>} */ (useTemplateRef('params_input_refs')) // eslint-disable-line @stylistic/no-extra-parens
let command_input_ref = /** @type {Readonly<Vue.ShallowRef<HTMLInputElement|null>>} */ (useTemplateRef('command_input_ref')) // eslint-disable-line @stylistic/no-extra-parens
onMounted(() => {
onMounted(async () => {
await nextTick()
if (params_input_refs.value?.length)
params_input_refs.value[0].focus()
else
Expand Down

0 comments on commit dce6bfe

Please sign in to comment.