File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2
2
<div id =" parent-select" >
3
3
<br />
4
4
<multiselect
5
+ v-model =" value"
5
6
placeholder =" Parent Component"
6
7
:multiple =" false"
7
8
:close-on-select =" true"
8
9
:options =" options"
9
10
@input =" handleSelect"
10
11
:max-height =" 150"
11
12
:option-height =" 20"
12
- :searchable =" false "
13
+ :searchable =" true "
13
14
></multiselect >
14
15
</div >
15
16
</template >
@@ -23,6 +24,9 @@ export default {
23
24
components: {
24
25
Multiselect
25
26
},
27
+ data () {
28
+ return { value: ' ' }
29
+ },
26
30
computed: {
27
31
... mapState ([
28
32
' routes' ,
@@ -47,6 +51,14 @@ export default {
47
51
// Set parentSelected to true IF VALUE IS A VALID PARENT (not null)
48
52
this .parentSelected (value)
49
53
}
54
+ },
55
+ watch: {
56
+ componentMap: {
57
+ handler () {
58
+ // console.log('activeComponent has changed')
59
+ this .value = ' '
60
+ }
61
+ }
50
62
}
51
63
}
52
64
</script >
You can’t perform that action at this time.
0 commit comments