Skip to content

Commit 346c903

Browse files
committed
fix: Various fixes for Input form components
1 parent f1854f2 commit 346c903

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

src/components/chips-input/QChipsInput.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@
4646
:class="[`text-${align}`]"
4747
v-model="input"
4848

49-
:name="name"
5049
:placeholder="inputPlaceholder"
5150
:disabled="disable"
5251
:readonly="readonly"
53-
:max-length="maxLength"
52+
v-bind="$attrs"
5453

5554
@focus="__onFocus"
5655
@blur="__onInputBlur"

src/components/input-frame/input-frame.ios.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
.q-if
55
min-height 32px
6-
padding-bottom 8px
76
color $primary
87
outline 0
8+
&:not(.q-field-hide-underline)
9+
padding-bottom 8px
910

1011
&:not(.q-if-hide-underline):not(.q-if-inverted)
1112
&:before, &:after

src/components/input-frame/input-frame.mat.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
.q-if
55
min-height 32px
6-
padding-bottom 8px
76
color $primary
87
outline 0
8+
&:not(.q-field-hide-underline)
9+
padding-bottom 8px
910

1011
&:not(.q-if-hide-underline):not(.q-if-inverted)
1112
&:before, &:after

src/components/input/QInput.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@
3939
ref="input"
4040
class="col q-input-target q-input-area"
4141

42-
:name="name"
4342
:placeholder="inputPlaceholder"
4443
:disabled="disable"
4544
:readonly="readonly"
46-
:maxlength="maxLength"
4745
v-bind="$attrs"
4846

4947
:value="model"
@@ -63,11 +61,9 @@
6361
class="col q-input-target q-no-input-spinner"
6462
:class="[`text-${align}`]"
6563

66-
:name="name"
6764
:placeholder="inputPlaceholder"
6865
:disabled="disable"
6966
:readonly="readonly"
70-
:maxlength="maxLength"
7167
:step="computedStep"
7268
v-bind="$attrs"
7369

src/components/search/QSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ export default {
9898
inverted: this.inverted,
9999
dark: this.dark,
100100
hideUnderline: this.hideUnderline,
101-
maxLength: this.maxLength,
102101
color: this.color,
103102
before: this.controlBefore,
104103
after: this.controlAfter,
105104
clearValue: this.clearValue
106105
},
106+
attrs: this.$attrs,
107107
on: {
108108
input: v => { this.model = v },
109109
focus: this.__onFocus,

src/mixins/input.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default {
22
props: {
33
autofocus: [Boolean, String],
4-
name: String,
54
maxLength: [Number, String],
65
maxHeight: Number,
76
placeholder: String,

0 commit comments

Comments
 (0)