Nice Work with PhotoSwipe!
I want to include a button in the caption that executes a function when clicked. Unfortunately, the "onClick" is not being executed.
<div className="pswp-caption-content">
<button onClick={() => handlerClick()}>Click</button>
<div>
<Text size="xl" weight={700}>
Lorem ipsum dolor (1933)
</Text>
</div>
Color photograph 12 x 10
</div>
Does anyone have an idea of how it could work?