-
Notifications
You must be signed in to change notification settings - Fork 197
fix(deps): Upgrade @nextcloud/vue to fix focus-trap compatibility #4920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable7.3
Are you sure you want to change the base?
Conversation
Upgrade @nextcloud/vue from ^8.27.0 to ^8.34.0 to resolve focus-trap library version mismatch with the guests app. The mismatch caused "_setPausedState is not a function" error when opening the guest invite dialog from the Teams member picker. Signed-off-by: nfebe <fenn25.fn@gmail.com>
31b818d to
ff6515c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Hi @nfebe This probably needs a transformation exclusion like in calendar. |
Yes, I made a fix but I will review the recently suggested workaround as well. Should be done today. |
1 similar comment
Yes, I made a fix but I will review the recently suggested workaround as well. Should be done today. |
The jsdom test environment does not provide structuredClone, which is used by @nextcloud/vue components. Signed-off-by: nfebe <fenn25.fn@gmail.com>
| if (typeof structuredClone === 'undefined') { | ||
| global.structuredClone = (val) => JSON.parse(JSON.stringify(val)) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Available since Node 17 so should not be needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fail without it for some reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah its JSDOM:
janepie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the issue
Upgrade @nextcloud/vue from ^8.27.0 to ^8.34.0 to resolve focus-trap library version mismatch with the guests app. The mismatch caused "_setPausedState is not a function" error when opening the guest invite dialog from the Teams member picker.
Without this the "Invite guest" modal does not work over the "Add team members" modal.