Skip to content
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

Dismiss gallery lightbox on background click #752

Merged
merged 2 commits into from
Sep 7, 2024
Merged

Conversation

christian-byrne
Copy link
Collaborator

Copied implementation from primevue Dialog.

gallery-dismiss.mp4

Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for implementing this!

@huchenlei huchenlei merged commit 08a1fd0 into main Sep 7, 2024
6 checks passed
@huchenlei huchenlei deleted the gallery-dismiss branch September 7, 2024 06:33
@christian-byrne
Copy link
Collaborator Author

LGTM! Thanks for implementing this!

No problem.

BTW, the issue of dialogs being immediately dismissed (worked around with #171) was fixed in primevue v4.0.4 (primefaces/primevue#6149). That was the implementation I copied. It works well on mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants