diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-11-16 16:05:00 -0800 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2023-11-30 16:58:21 +0100 |
commit | bedcbb8ecc175adb0c8664a82d2e28297a7d7510 (patch) | |
tree | 6dd0e66e219f3fe5302f54e1e1d767f8ecb0a163 /apps | |
parent | 07437d0c1d18a690aa509fda5a500c5b06f9b2df (diff) | |
download | nextcloud-server-bedcbb8ecc175adb0c8664a82d2e28297a7d7510.tar.gz nextcloud-server-bedcbb8ecc175adb0c8664a82d2e28297a7d7510.zip |
fix(a11y): Focus on sharing quick permission radio
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index dd5ab493193..4a347404461 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -16,7 +16,8 @@ </span> </div> <div class="sharingTabDetailsView__wrapper"> - <div class="sharingTabDetailsView__quick-permissions"> + <div ref="quickPermissions" + class="sharingTabDetailsView__quick-permissions"> <div> <NcCheckboxRadioSwitch :button-variant="true" :checked.sync="sharingPermission" @@ -647,6 +648,10 @@ export default { console.debug('config', this.config) }, + mounted() { + this.$refs.quickPermissions?.querySelector('input:checked')?.focus() + }, + methods: { updateAtomicPermissions({ isReadChecked = this.hasRead, |