fix(ImagePreview): onClose should only trigger once (#5341)
This commit is contained in:
@@ -54,6 +54,7 @@ const ImagePreview = (images, startPosition = 0) => {
|
||||
});
|
||||
|
||||
if (options.onClose) {
|
||||
instance.$off('close');
|
||||
instance.$once('close', options.onClose);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user