File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/components/HomeSideDropDownItems Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 8
8
:close-on-select =" false"
9
9
:max-height =" 150"
10
10
:option-height =" 20"
11
- @input =" onActivated (value)"
11
+ @input =" handleSelect (value)"
12
12
placeholder =" Select a component" ></multiselect >
13
13
<br />
14
14
<a
@@ -74,17 +74,17 @@ export default {
74
74
' deleteActiveComponent'
75
75
]),
76
76
onActivated (componentData ) {
77
- if (! componentData .componentName ) {
78
- this .setActiveComponent (componentData)
79
- this .value = ' '
80
- } else {
81
- this .setActiveComponent (componentData .componentName )
82
- }
77
+ this .setActiveComponent (componentData .componentName )
83
78
this .activeComponentData .isActive = true
84
79
},
85
80
handleClick (componentData ) {
86
81
this .setActiveComponent (componentData .componentName )
87
82
this .deleteActiveComponent (componentData .componentName )
83
+ },
84
+ handleSelect (componentName ) {
85
+ this .setActiveComponent (componentName)
86
+ this .value = ' '
87
+ this .activeComponentData .isActive = true
88
88
}
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments