@ascua/dropdown 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,9 +86,7 @@ export default class extends Component {
|
|
|
86
86
|
@action register(el, value, label) {
|
|
87
87
|
setTimeout(() => {
|
|
88
88
|
Promise.resolve(value).then(value => {
|
|
89
|
-
this.options.
|
|
90
|
-
el, label, value,
|
|
91
|
-
});
|
|
89
|
+
this.options = [...this.options, { el, label, value }];
|
|
92
90
|
});
|
|
93
91
|
});
|
|
94
92
|
}
|
|
@@ -119,10 +117,11 @@ export default class extends Component {
|
|
|
119
117
|
|
|
120
118
|
if (this.args.multiple) {
|
|
121
119
|
if (this.value.includes(value)) {
|
|
122
|
-
value = this.value.
|
|
120
|
+
this.value = this.value.filter(v => v !== value);
|
|
123
121
|
} else {
|
|
124
|
-
value = this.value
|
|
122
|
+
this.value = [...this.value, value];
|
|
125
123
|
}
|
|
124
|
+
value = this.value;
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
if (this.args.onSelect) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ascua/dropdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Small description for @ascua/dropdown goes here",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"url": "https://surrealdb.com"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@ascua/arrays": "^0.
|
|
19
|
-
"@ascua/format": "^0.
|
|
20
|
-
"@ascua/keyboard": "^0.
|
|
21
|
-
"@ascua/logic": "^0.
|
|
22
|
-
"@ascua/modifiers": "^0.
|
|
23
|
-
"@ascua/promise": "^0.
|
|
18
|
+
"@ascua/arrays": "^0.14.0",
|
|
19
|
+
"@ascua/format": "^0.14.0",
|
|
20
|
+
"@ascua/keyboard": "^0.14.0",
|
|
21
|
+
"@ascua/logic": "^0.14.0",
|
|
22
|
+
"@ascua/modifiers": "^0.14.0",
|
|
23
|
+
"@ascua/promise": "^0.14.0",
|
|
24
24
|
"ember-cli-babel": "^8.2.0",
|
|
25
25
|
"ember-cli-htmlbars": "^6.3.0"
|
|
26
26
|
},
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e9440da123a861e13175cbfa7947f129e5a69759"
|
|
35
35
|
}
|