diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-11-29 19:26:57 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-12-07 18:02:17 +0100 |
commit | 45e66458ff73753353dfe7f0b828f17cda050a5f (patch) | |
tree | f1e747daf2334fab04866c2bc555bfe90a7be205 /apps/settings/src/components/UserList.vue | |
parent | 2594d9ec356169d747478afeef7e4c300698f8af (diff) | |
download | nextcloud-server-45e66458ff73753353dfe7f0b828f17cda050a5f.tar.gz nextcloud-server-45e66458ff73753353dfe7f0b828f17cda050a5f.zip |
Fix input for groups validation in new user form
The hidden input used for form validation was not actually hidden since
Nextcloud 22, as the DOM structure changed to show a dialog rather than
adding a row on top of the list when adding new users, so the CSS rules
no longer matched.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/settings/src/components/UserList.vue')
-rw-r--r-- | apps/settings/src/components/UserList.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/settings/src/components/UserList.vue b/apps/settings/src/components/UserList.vue index 68c07d1ab21..7c67a422929 100644 --- a/apps/settings/src/components/UserList.vue +++ b/apps/settings/src/components/UserList.vue @@ -623,4 +623,16 @@ export default { .row::v-deep .multiselect__single { z-index: auto !important; } + + /* fake input for groups validation */ + input#newgroups { + position: absolute; + opacity: 0; + /* The "hidden" input is behind the Multiselect, so in general it does + * not receives clicks. However, with Firefox, after the validation + * fails, it will receive the first click done on it, so its width needs + * to be set to 0 to prevent that ("pointer-events: none" does not + * prevent it). */ + width: 0; + } </style> |