Skip to content

Commit 4cc86b0

Browse files
committed
feat: [Request] QInput: add properties autocompletetype, autocapitalize, autocorrect, spellcheck quasarframework#935
1 parent 6a46cc9 commit 4cc86b0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dev/components/form/input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<div class="layout-padding input-example" style="max-width: 600px;">
4-
<q-input ref="xi" @change="onChange" v-model="text" />
4+
<q-input ref="xi" :attributes="{gigi: 'yes'}" @change="onChange" v-model="text" />
55
<q-btn @click="$refs.xi.select()">Select</q-btn>
66
<q-input v-model="text" stack-label="Stack Label" />
77
<q-input v-model="text" float-label="Float Label" placeholder="Gigi" />

src/components/input/QInput.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
:readonly="readonly"
4343
:maxlength="maxLength"
4444
:rows="minRows"
45+
v-bind="attributes"
4546

4647
:value="value"
4748
@input="__set"
@@ -66,7 +67,7 @@
6667
:disabled="disable"
6768
:readonly="readonly"
6869
:maxlength="maxLength"
69-
:autocomplete="autocomplete"
70+
v-bind="attributes"
7071

7172
:min="min"
7273
:max="max"
@@ -139,7 +140,7 @@ export default {
139140
clearable: Boolean,
140141
noPassToggle: Boolean,
141142
readonly: Boolean,
142-
autocomplete: String,
143+
attributes: Object,
143144
144145
min: Number,
145146
max: Number,

0 commit comments

Comments
 (0)