@policystudio/policy-studio-ui-vue 1.2.0-access.87 → 1.2.0-access.89

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.87",
3
+ "version": "1.2.0-access.89",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  :role="role"
35
35
  tabindex="-1"
36
36
  class="psui-el-dropdown-menu-dialog-wrapper"
37
- @keydown.esc="closeWithFocus"
37
+ @keydown.esc.stop.prevent="closeWithFocus"
38
38
  @keydown.down.prevent="moveFocus(1)"
39
39
  @keydown.up.prevent="moveFocus(-1)"
40
40
  @keydown.tab="handleTab"
@@ -122,9 +122,10 @@ const { floatingStyles } = useFloating(PSDropdownTrigger, PSDropdownFloating, {
122
122
  ],
123
123
  })
124
124
 
125
- const closeWithFocus = () => {
125
+ const closeWithFocus = async () => {
126
126
  show.value = false
127
127
  emit('close')
128
+ await nextTick()
128
129
  PSDropdownTrigger.value?.querySelector('button, [tabindex]:not([tabindex="-1"])')?.focus()
129
130
  }
130
131