@policystudio/policy-studio-ui-vue 1.2.0-access.53 → 1.2.0-access.54

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.53",
3
+ "version": "1.2.0-access.54",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -2,7 +2,8 @@
2
2
  <div class="psui-el-dropdown-menu">
3
3
  <div
4
4
  ref="PSDropdownTrigger"
5
- @click="toggle"
5
+ @click.stop="toggle"
6
+ @keydown.enter.stop="toggle"
6
7
  >
7
8
  <slot
8
9
  v-if="hasDropdownTrigger"
@@ -4,6 +4,7 @@
4
4
  :style="{ display: display }"
5
5
  tabindex="0"
6
6
  @click="emit('click', $event)"
7
+ @keydown="emit('keydown',$event)"
7
8
  >
8
9
  <span
9
10
  v-if="getIconType === 'material-icons'"
@@ -124,7 +125,7 @@ const props = defineProps({
124
125
  const finishedImageLoad = ref(false)
125
126
  const imageLoadError = ref(false)
126
127
 
127
- const emit = defineEmits(['click'])
128
+ const emit = defineEmits(['click','keydown'])
128
129
 
129
130
  const getIconType = computed(() => {
130
131
  if (props.type) return props.type