@veritree/ui 0.21.1-3 → 0.21.1-4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.21.1-3",
3
+ "version": "0.21.1-4",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@floating-ui/dom": "^1.0.4",
15
15
  "@linusborg/vue-simple-portal": "^0.1.5",
16
- "@veritree/icons": "^0.19.0"
16
+ "@veritree/icons": "^0.39.0"
17
17
  },
18
18
  "devDependencies": {}
19
19
  }
@@ -36,8 +36,8 @@ export default {
36
36
  },
37
37
 
38
38
  computed: {
39
- componentContent() {
40
- return this.api().componentContent;
39
+ componentTrigger() {
40
+ return this.api().componentTrigger;
41
41
  },
42
42
 
43
43
  list() {
@@ -129,7 +129,10 @@ export default {
129
129
  },
130
130
 
131
131
  hide() {
132
- if (this.componentContent) this.componentContent.hide();
132
+ if (!this.componentTrigger) {
133
+ this.componentTrigger.cancel();
134
+ this.componentTrigger.focus();
135
+ }
133
136
  },
134
137
  },
135
138
  };
@@ -133,7 +133,6 @@ export default {
133
133
  if (!this.componentContent) {
134
134
  return;
135
135
  }
136
-
137
136
  this.expanded = false;
138
137
 
139
138
  this.hideComponentContent();