Update ImageUtilities.plugin.js
This commit is contained in:
parent
fae1238839
commit
c932294859
|
@ -472,6 +472,7 @@ var ImageUtilities = (_ => {
|
||||||
processImageModal (e) {
|
processImageModal (e) {
|
||||||
if (clickedImage) e.instance.props.cachedImage = clickedImage;
|
if (clickedImage) e.instance.props.cachedImage = clickedImage;
|
||||||
let src = e.instance.props.cachedImage && e.instance.props.cachedImage.src ? e.instance.props.cachedImage : e.instance.props.src;
|
let src = e.instance.props.cachedImage && e.instance.props.cachedImage.src ? e.instance.props.cachedImage : e.instance.props.src;
|
||||||
|
src = src.src || src;
|
||||||
let messages = this.getMessageGroupOfImage(src);
|
let messages = this.getMessageGroupOfImage(src);
|
||||||
if (e.returnvalue) {
|
if (e.returnvalue) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.downloadlink]]});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.downloadlink]]});
|
||||||
|
|
Loading…
Reference in New Issue