Update create bookmark to not autofocus input and leave empty with placeholder

This commit is contained in:
advplyr 2025-06-22 17:36:09 -05:00
parent 6a2f487ed5
commit a77f345596
3 changed files with 18 additions and 15 deletions

View file

@ -1,6 +1,6 @@
<template>
<div class="relative">
<input v-model="input" ref="input" autofocus :type="type" :disabled="disabled" :readonly="readonly" autocorrect="off" autocapitalize="none" autocomplete="off" :placeholder="placeholder" class="py-2 w-full outline-none bg-primary disabled:text-fg-muted" :class="inputClass" @keyup="keyup" />
<input v-model="input" ref="input" :autofocus="autofocus" :type="type" :disabled="disabled" :readonly="readonly" autocorrect="off" autocapitalize="none" autocomplete="off" :placeholder="placeholder" class="py-2 w-full outline-none bg-primary disabled:text-fg-muted" :class="inputClass" @keyup="keyup" />
<div v-if="prependIcon" class="absolute top-0 left-0 h-full px-2 flex items-center justify-center">
<span class="material-symbols text-lg">{{ prependIcon }}</span>
</div>
@ -22,6 +22,10 @@ export default {
disabled: Boolean,
readonly: Boolean,
borderless: Boolean,
autofocus: {
type: Boolean,
default: true
},
bg: {
type: String,
default: 'bg'