@veritree/ui 0.18.0 → 0.18.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -14,7 +14,7 @@
14
14
  :tabindex="tabIndex"
15
15
  :aria-disabled="disabled"
16
16
  role="menuitem"
17
- @click.stop="onClick"
17
+ @click.stop.prevent="onClick"
18
18
  @keydown.down.prevent="focusPreviousItem"
19
19
  @keydown.up.prevent="focusNextItem"
20
20
  @keydown.home.prevent="focusFirstItem"
@@ -28,12 +28,12 @@
28
28
  </template>
29
29
 
30
30
  <script>
31
- import { genId } from "../../utils/ids";
31
+ import { genId } from '../../utils/ids';
32
32
 
33
33
  export default {
34
- name: "VTDropdownMenuItem",
34
+ name: 'VTDropdownMenuItem',
35
35
 
36
- inject: ["api"],
36
+ inject: ['api'],
37
37
 
38
38
  props: {
39
39
  to: {
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
 
70
70
  as() {
71
- return this.href ? "a" : this.to ? "NuxtLink" : "button";
71
+ return this.href ? 'a' : this.to ? 'NuxtLink' : 'button';
72
72
  },
73
73
 
74
74
  items() {
@@ -163,7 +163,7 @@ export default {
163
163
  onClick() {
164
164
  if (this.disabled) return;
165
165
 
166
- this.$emit("click");
166
+ this.$emit('click');
167
167
  this.$nextTick(() => this.leaveMenu());
168
168
  },
169
169
  },