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' ,
@@ -46,6 +50,14 @@ export default {
46
50
// Set parentSelected to true IF VALUE IS A VALID PARENT (not null)
47
51
this .parentSelected (true )
48
52
}
53
+ },
54
+ watch: {
55
+ componentMap: {
56
+ handler () {
57
+ // console.log('activeComponent has changed')
58
+ this .value = ' '
59
+ }
60
+ }
49
61
}
50
62
}
51
63
</script >
You can’t perform that action at this time.
0 commit comments