Events on Collection Linked Wix Pro Gallery don't work?

Hey Folks,

I’m having trouble to register event handlers for the Wix Pro Gallery that is linked to a Collection. None of the events fire regardles whether I register the handlers in the onReady() function or outside.

Any thoughts?

$w.onReady(function () {
	
 	$w('#PortfolioGallery').onItemClicked( (event) => {
   		console.log('item clicked');
	});
});
export function PortfolioGallery_itemClicked(event) {
	//Add your code for this event here: 
	console.log('item clicked');
}

Hey… thats strange… I just closed and opended the Editor for some strange feeling and look… the click events are working suddenly… really strange…