You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Impossible to confirm password during user creation #33637
^ this dialoge is unusable. I can't enter the password nor can I click a button.
Calling OC.PasswordConfirmation.requirePasswordConfirmation() after a fresh page load is usable. The confirmation dialogue only doesn't work when a modal is open.
Steps to reproduce
Log into Nextcloud as admin
Wait x hours for the password confirmation to kick in (don't know the exact time)
Open the user management
Create a new user
Expected behavior
Password confirmation dialogue opens and I can use it
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
I suspect that we need to detect when the current modal is not focused any more and then pause the focus trap until we return to that modal. We currently don't have the semantics to know which modal is currently on top.
Hmm, I created an example in nextcloud-libraries/nextcloud-vue#3087 and the focus trap works fine there.
Either there are more changes on master / nc vue 6.0.0 or it's the way how the dialog is invoked that is different.
Activity
PVince81 commentedon Aug 22, 2022
possibly related to the v5.4.0 update of nextcloud-vue, which brought the focus trap for modals: nextcloud-libraries/nextcloud-vue#2654
ChristophWurst commentedon Aug 22, 2022
then it's indeed the identical issue that we also had/have with Mail and v5.4 nextcloud/mail#7034 (review)
PVince81 commentedon Aug 22, 2022
there were additional fixes for modal focus trap which we might need to backport: nextcloud-libraries/nextcloud-vue#2955 nextcloud-libraries/nextcloud-vue#3020
PVince81 commentedon Aug 22, 2022
the backports were merged, need to retry with stable5 of nextcloud-vue to see if the issue is fixed
PVince81 commentedon Aug 22, 2022
I've tested with stable5 with the fixes merged, but the problem persists
I suspect this is due to having two modals on top of each other, maybe confusing the focus trap
PVince81 commentedon Aug 22, 2022
yeah... I see that the focus is still on the modal behind and not in the new modal... you can still tab onto the fields...
PVince81 commentedon Aug 22, 2022
I tried upgrading the lib to 6.9.4 but it didn't help.
I'll try to build a test case directly in nextcloud-vue, this way we can test and debug it there
PVince81 commentedon Aug 22, 2022
I suspect that we need to detect when the current modal is not focused any more and then pause the focus trap until we return to that modal. We currently don't have the semantics to know which modal is currently on top.
PVince81 commentedon Aug 22, 2022
Hmm, I created an example in nextcloud-libraries/nextcloud-vue#3087 and the focus trap works fine there.
Either there are more changes on master / nc vue 6.0.0 or it's the way how the dialog is invoked that is different.
Next up:
PVince81 commentedon Aug 24, 2022
I forgot we already had this ticket.
Anyway, I made a new one moving forward: #33675