Skip to content

Commit

Permalink
Merge pull request #43388 from nextcloud/backport/43358/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(settings): focus on federation scope after dialog
  • Loading branch information
JuliaKirschenheuter authored Feb 6, 2024
2 parents a523a87 + 87dde68 commit 2f6b641
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
:clearable="false"
:options="visibilityOptions"
:value="visibilityObject"
label-outside
@option:selected="onVisibilityChange" />
</div>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
-->

<template>
<NcActions class="federation-actions"
<NcActions ref="federationActions"
class="federation-actions"
:class="{ 'federation-actions--additional': additional }"
:aria-label="ariaLabel"
:default-icon="scopeIcon"
Expand Down Expand Up @@ -151,6 +152,9 @@ export default {
} else {
await this.updateAdditionalScope(scope)
}

// TODO: provide focus method from NcActions
this.$refs.federationActions.$refs.menuButton.$el.focus()
},

async updatePrimaryScope(scope) {
Expand Down
4 changes: 2 additions & 2 deletions dist/settings-vue-settings-personal-info.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-vue-settings-personal-info.js.map

Large diffs are not rendered by default.

0 comments on commit 2f6b641

Please sign in to comment.