Skip to content

Commit

Permalink
feat(input): add native autocomplete attribute support (#4370)
Browse files Browse the repository at this point in the history
  • Loading branch information
padinko committed Sep 13, 2024
1 parent 3f1a17a commit ff822e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/components/va-input/VaInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const props = defineProps({
pattern: { type: String },
inputmode: { type: String, default: 'text' },
counter: { type: Boolean, default: false },
autocomplete: { type: String },
// style
ariaResetLabel: useTranslationProp('$t:reset'),
Expand Down Expand Up @@ -227,7 +228,7 @@ const computedChildAttributes = computed(() => (({
const computedInputAttributes = computed(() => (({
...computedChildAttributes.value,
...pick(props, ['type', 'disabled', 'readonly', 'placeholder', 'pattern', 'inputmode', 'name']),
...pick(props, ['type', 'disabled', 'readonly', 'placeholder', 'pattern', 'inputmode', 'name', 'autocomplete']),
...pick(attrs, ['minlength', 'minlength']),
}) as InputHTMLAttributes))
Expand Down

0 comments on commit ff822e7

Please sign in to comment.