Skip to content

Commit a838b07

Browse files
committed
added changes to multiselect to shorten not found message
1 parent 8ee7bde commit a838b07

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/HomeSideDropDownItems/ComponentList.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
v-model="value"
66
:options='options'
77
:searchable="true"
8-
:close-on-select="false"
9-
:max-height="150"
8+
:close-on-select="true"
9+
:max-height="90"
1010
:option-height="20"
1111
@input="handleSelect(value)"
12-
placeholder="Select a component"></multiselect>
12+
placeholder="Select a component">
13+
<span slot='noResult'>No elements found.</span>
14+
</multiselect>
1315
<br/>
1416
<a
1517
v-for="componentData in activeRouteDisplay"

src/components/ParentMultiselect.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
:close-on-select="true"
99
:options="options"
1010
@input="handleSelect"
11-
:max-height="150"
11+
:max-height="90"
1212
:option-height="20"
1313
:searchable="true"
14-
></multiselect>
14+
>
15+
<span slot='noResult'>No elements found.</span>
16+
</multiselect>
1517
</div>
1618
</template>
1719

0 commit comments

Comments
 (0)