@policystudio/policy-studio-ui-vue 1.2.0-access.55 → 1.2.0-access.56

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.55",
3
+ "version": "1.2.0-access.56",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -14,7 +14,6 @@
14
14
  :id="getInputId"
15
15
  v-bind="inputAttrs"
16
16
  @change="emit('change', $event)"
17
- @keyup.enter="emit('change', $event)"
18
17
  >
19
18
  <label
20
19
  :for="getInputId"
@@ -39,7 +38,6 @@
39
38
  :id="getInputId"
40
39
  v-bind="inputAttrs"
41
40
  @change="emit('change', $event)"
42
- @keyup.enter="emit('change', $event)"
43
41
  >
44
42
  <label
45
43
  :for="getInputId"
@@ -10,6 +10,8 @@
10
10
  :name="inputId"
11
11
  :value="inputValue"
12
12
  v-model="model"
13
+ tabindex="-1"
14
+ aria-hidden="true"
13
15
  :disabled="disabled"
14
16
  :checked="isChecked"
15
17
  >
@@ -64,7 +66,7 @@ const props = defineProps({
64
66
  },
65
67
  })
66
68
 
67
- const emit = defineEmits(['input'])
69
+ const emit = defineEmits(['input', 'keydown'])
68
70
  const getComponentClass = computed(() => {
69
71
  return `size-${props.size}`
70
72
  })
@@ -118,7 +118,7 @@ const { floatingStyles } = useFloating(PSDropdownTrigger, PSDropdownFloating, {
118
118
  const closeWithFocus = () => {
119
119
  show.value = false
120
120
  emit('close')
121
- PSDropdownTrigger.value?.querySelector('button')?.focus()
121
+ PSDropdownTrigger.value?.querySelector('button, [tabindex]:not([tabindex="-1"]')?.focus()
122
122
  }
123
123
 
124
124
  const focusFirstElement = async () => {