File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" home-sidebar" >
3
3
<multiselect
4
- class =' multiselect'
5
- v-model =" value"
6
- :options =' options'
7
- :searchable =" true"
4
+ class =' multiselect'
5
+ v-model =" value"
6
+ :options =' options'
7
+ :searchable =" true"
8
8
:close-on-select =" true"
9
9
:max-height =" 90"
10
10
:option-height =" 20"
11
11
@input =" handleSelect(value)"
12
+ @open =" resetActiveComponent"
12
13
placeholder =" Select a component" >
13
14
<span slot =' noResult' >No components found.</span >
14
15
</multiselect >
@@ -87,6 +88,11 @@ export default {
87
88
this .setActiveComponent (componentName)
88
89
this .value = ' '
89
90
this .activeComponentData .isActive = true
91
+ },
92
+ resetActiveComponent () {
93
+ if (this .activeComponent !== ' ' ) {
94
+ this .setActiveComponent (' ' )
95
+ }
90
96
}
91
97
}
92
98
}
Original file line number Diff line number Diff line change 8
8
:close-on-select =" true"
9
9
:options =" options"
10
10
@input =" handleSelect"
11
+ @open =" resetActiveComponent"
11
12
:max-height =" 90"
12
13
:option-height =" 20"
13
14
:searchable =" true"
You can’t perform that action at this time.
0 commit comments