diff --git a/components/modals/BookmarksModal.vue b/components/modals/BookmarksModal.vue index fb1d9a03..8b8284d9 100644 --- a/components/modals/BookmarksModal.vue +++ b/components/modals/BookmarksModal.vue @@ -17,7 +17,7 @@

{{ this.$secondsToTimestamp(currentTime) }}

- +
{{ selectedBookmark ? 'Update' : 'Create' }}
@@ -151,6 +151,16 @@ export default { this.selectedBookmark = null this.newBookmarkTitle = this.$formatDate(Date.now(), 'MMM dd, yyyy HH:mm') this.showBookmarkTitleInput = true + + // Auto focus the input and select the text + this.$nextTick(() => { + if (this.$refs.noteInput?.$refs.input?.$refs.input) { + this.$refs.noteInput.$refs.input.$refs.input.focus() + setTimeout(() => { + this.$refs.noteInput?.$refs.input?.$refs.input?.select() + }, 10) + } + }) }, async submitBookmark() { await this.$hapticsImpact() diff --git a/components/ui/TextInputWithLabel.vue b/components/ui/TextInputWithLabel.vue index c09dc2b2..d7500951 100644 --- a/components/ui/TextInputWithLabel.vue +++ b/components/ui/TextInputWithLabel.vue @@ -1,7 +1,7 @@