Skip to content

Commit

Permalink
fix: autofocus guest name input
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Sep 5, 2024
1 parent 0df38a7 commit 6ad07ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/GuestNamePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
</p>

<fieldset>
<NcTextField :value="guestName"
<NcTextField ref="guestNameInput"
:value="guestName"
data-cy="guestNameInput"
:label="t('richdocuments', 'Guest name')"
:placeholder="t('richdocuments', 'Anonymous guest')"
Expand Down Expand Up @@ -83,6 +84,10 @@ export default {
},
async mounted() {
this.$nextTick(() => {
this.$refs.guestNameInput.focus()
})
const name = document.getElementById('filename').value
const mimeTypeIcon = async () => {
const url = document.getElementById('mimetypeIcon').value
Expand Down

0 comments on commit 6ad07ed

Please sign in to comment.