aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-11-16 16:05:00 -0800
committerChristopher Ng <chrng8@gmail.com>2023-11-16 16:05:00 -0800
commit6329da9352536fb6dfa3777eaae8e50ecb366d92 (patch)
treee3ab689287796642bfc93097e45141e1ed2962da /apps/files_sharing/src
parent9a3d45b0ef169c2119e9a63115e3c3ec04fd45e3 (diff)
downloadnextcloud-server-6329da9352536fb6dfa3777eaae8e50ecb366d92.tar.gz
nextcloud-server-6329da9352536fb6dfa3777eaae8e50ecb366d92.zip
fix(a11y): Focus on sharing quick permission radio
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue7
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 1ff5bbd66b4..91c13c3819b 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"
@@ -671,6 +672,10 @@ export default {
console.debug('config', this.config)
},
+ mounted() {
+ this.$refs.quickPermissions?.querySelector('input:checked')?.focus()
+ },
+
methods: {
updateAtomicPermissions({
isReadChecked = this.hasRead,