Lightbox close button onClick event

Seems to be supported, but I don’t see the event handler for this click event getting called. OnMouseIn and onMouseOut work fine. Also, this works fine for other button types.

The page code is very simple:

export function mybutton_click(event) {
//Add your code for this event here:
console.info(“button click”);
}

I never see “button click” in the developer console.

A bug or do I have something improperly configured?

Thank much.

Make sure you do not have a button with a LINK added as default. If you have the click event in code will not be triggered. If you can’t make it work just delete the close button or uncheck to have it shown and drag your own button onto the lightbox and it will for sure work.

Thanks for the quick response. I don’t have the scenario you described. The work around works fine and is easy enough, but it is a work around. Hopefully this issue is still forwarded to engineering for a proper fix. For now, this is good enough for me.

Thanks again.