@ascua/dropdown 0.13.1 → 0.14.1

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.addObject({
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.removeObject(value);
120
+ this.value = this.value.filter(v => v !== value);
123
121
  } else {
124
- value = this.value.addObject(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.13.1",
3
+ "version": "0.14.1",
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.13.1",
19
- "@ascua/format": "^0.13.1",
20
- "@ascua/keyboard": "^0.13.1",
21
- "@ascua/logic": "^0.13.1",
22
- "@ascua/modifiers": "^0.13.1",
23
- "@ascua/promise": "^0.13.1",
18
+ "@ascua/arrays": "^0.14.1",
19
+ "@ascua/format": "^0.14.1",
20
+ "@ascua/keyboard": "^0.14.1",
21
+ "@ascua/logic": "^0.14.1",
22
+ "@ascua/modifiers": "^0.14.1",
23
+ "@ascua/promise": "^0.14.1",
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": "b82210aa718b64830c1a2d503158cfbd30d06839"
34
+ "gitHead": "2d65b32d5ec3b18e5e4f90df4c36c6236e73b91a"
35
35
  }