diff --git a/components/modals/BookmarksModal.vue b/components/modals/BookmarksModal.vue index 5d91bcf8..edd93356 100644 --- a/components/modals/BookmarksModal.vue +++ b/components/modals/BookmarksModal.vue @@ -17,7 +17,7 @@

{{ this.$secondsToTimestamp(currentTime / _playbackRate) }}

- +
{{ selectedBookmark ? 'Update' : 'Create' }}
@@ -93,6 +93,10 @@ export default { } }, methods: { + bookmarkPlaceholder() { + // using a method prevents caching the date + return this.$formatDate(Date.now(), 'MMM dd, yyyy HH:mm') + }, editBookmark(bm) { this.selectedBookmark = bm this.newBookmarkTitle = bm.title @@ -157,18 +161,8 @@ export default { }, createBookmark() { this.selectedBookmark = null - this.newBookmarkTitle = this.$formatDate(Date.now(), 'MMM dd, yyyy HH:mm') + this.newBookmarkTitle = '' 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/TextInput.vue b/components/ui/TextInput.vue index 942a97e5..600f77ee 100644 --- a/components/ui/TextInput.vue +++ b/components/ui/TextInput.vue @@ -1,6 +1,6 @@