We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 99edc27 + a432616 commit 54d47b3Copy full SHA for 54d47b3
1 file changed
src/components/NcActions/NcActions.vue
@@ -1175,6 +1175,18 @@ export default {
1175
return renderInlineAction(inlineActions[0])
1176
}
1177
1178
+ // If we completely re-render the children
1179
+ // we need to focus the first action again
1180
+ // Mostly used when clicking a menu item
1181
+ this.$nextTick(() => {
1182
+ if (this.opened && this.$refs.menu) {
1183
+ const isAnyActive = this.$refs.menu.querySelector('li.active') || []
1184
+ if (isAnyActive.length === 0) {
1185
+ this.focusFirstAction()
1186
+ }
1187
1188
+ })
1189
+
1190
/**
1191
* If we some inline actions to render, render them, then the menu
1192
*/
0 commit comments