fix(modal): make close button / backdrop work on direct invite link page #177
Reference in New Issue
Block a user
Delete Branch "userAdityaa/flotilla:invite-modal-close-button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The invite dialog’s close (cross) button and backdrop were not working correctly on the direct invite link page. The fix ensures that clicking the close button or the backdrop now properly closes the dialog/modal as expected, improving usability for users who join via a direct invite link.
Fixes #176
Test Steps:
I don't like this solution at all.
Instead of fixing the modal you want the close button to do a navigation 😐
i might be wrong however
agree with you, but, this screen is route-backed, not modal-stack-backed. So
clearModalswould not actually dismiss it; it only clears hash-based modals.Refer this:
Why the Go Back button was working before ?
-> The back prop passed to SpaceInviteAccept is a function that navigates away from the
/joinroute (with history.back())Yes, If we want real modal dismissal semantics, we should move this flow onto the modal stack. I'll wait for feedback on which direction makes the most sense, or whether these changes are even something that should be pursued right now.
This looks good. The reason it doesn't use the modal stack is because the page itself doesn't have any meaning without the modal. So if someone closes it, it should navigate elsewhere.
7f1fe51d2etocdc6bd4805Yes, completely understand the reasoning of it, thanks for the merge 😄