diff --git a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js index cdee80d1b..5c815578f 100644 --- a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js +++ b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js @@ -696,7 +696,14 @@ export class GalleryContainer extends React.Component { } } if (typeof this.props.eventsListener === 'function') { - this.props.eventsListener(eventName, eventData, event); + switch (eventName) { + case GALLERY_CONSTS.events.ITEM_ACTION_TRIGGERED: + case GALLERY_CONSTS.events.ITEM_CLICKED: + setTimeout(this.props.eventsListener(eventName, eventData, event), 0); + break; + default: + this.props.eventsListener(eventName, eventData, event); + } } if (eventName === GALLERY_CONSTS.events.GALLERY_SCROLLED) {