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

How to modify preview events #114

Open
nhevia opened this issue Jan 7, 2022 · 0 comments
Open

How to modify preview events #114

nhevia opened this issue Jan 7, 2022 · 0 comments

Comments

@nhevia
Copy link

nhevia commented Jan 7, 2022

Following custom preview image demo:

<Image
      width={200}
      src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png?x-oss-process=image/blur,r_50,s_50/quality,q_1/resize,m_mfit,h_200,w_200"
      preview={{
        src: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
      }}
/>

The only way to close the popup image is either: a) X button b) press on the modal (outside the image).

How is it possible to close the popup when clicking the image?

Using Image preview API modifies only the hover modal of the preview, and modal property of preview does the same.

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

No branches or pull requests

1 participant