|
@@ -127,7 +127,7 @@ export default class PreviewInnerFoundation<P = Record<string, any>, S = Record<
|
|
|
couldClose = false;
|
|
|
}
|
|
|
if (couldClose && maskClosable) {
|
|
|
- this.handlePreviewClose();
|
|
|
+ this._adapter.notifyVisibleChange(false);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -177,9 +177,10 @@ export default class PreviewInnerFoundation<P = Record<string, any>, S = Record<
|
|
|
this._adapter.notifyDownload(downloadSrc, currentIndex);
|
|
|
}
|
|
|
|
|
|
- handlePreviewClose = () => {
|
|
|
+ handlePreviewClose = (e: any) => {
|
|
|
this._adapter.notifyVisibleChange(false);
|
|
|
this._adapter.notifyClose();
|
|
|
+ handlePrevent(e);
|
|
|
}
|
|
|
|
|
|
handleAdjustRatio = (type: RatioType) => {
|