Skip to content

Commit 738be01

Browse files
committed
fix(QSelect): filter icon
1 parent c77f7ab commit 738be01

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/components/search/QSearch.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ export default {
5959
: this.debounce
6060
},
6161
controlBefore () {
62-
return this.before || [{
63-
icon: this.icon || this.$q.icon.search.icon,
64-
handler: this.focus
65-
}]
62+
return this.before || (
63+
this.icon
64+
? [{
65+
icon: this.icon || this.$q.icon.search.icon,
66+
handler: this.focus
67+
}]
68+
: null
69+
)
6670
},
6771
controlAfter () {
6872
if (this.after) {

src/components/select/QSelect.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,16 @@
8181
v-if="filter"
8282
ref="filter"
8383
v-model="terms"
84+
class="q-select-filter"
8485
@input="reposition"
8586
@keydown.native="__keyboardHandleKey"
8687
:placeholder="filterPlaceholder || $q.i18n.label.filter"
8788
:debounce="100"
8889
:color="color"
8990
:dark="dark"
9091
no-parent-field
91-
icon="filter_list"
92-
style="min-height: 50px; padding: 10px;"
92+
icon=""
93+
style="padding: 10px;"
9394
/>
9495

9596
<q-list

0 commit comments

Comments
 (0)