We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b46f6d commit a8c5aa0Copy full SHA for a8c5aa0
src/components/NcActions/NcActions.vue
@@ -1249,11 +1249,16 @@ export default {
1249
*/
1250
this.$emit('open')
1251
},
1252
- closeMenu(returnFocus = true) {
+ async closeMenu(returnFocus = true) {
1253
if (!this.opened) {
1254
return
1255
}
1256
1257
+ // Wait for the next tick to keep the menu in DOM, allowing other components to find what button in what menu was used,
1258
+ // for example, to implement auto set return focus.
1259
+ // NcPopover will actually remove the menu from DOM also on the next tick.
1260
+ await this.$nextTick()
1261
+
1262
this.opened = false
1263
1264
this.$refs.popover.clearFocusTrap({ returnFocus })
0 commit comments