Code Monkey home page Code Monkey logo

react-preview's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

newsning

react-preview's Issues

当我关闭的时候会报错呢

return useMemo(() => {
return (
<div
className={classname("auto-image-view",{[className]: className, [.img-${id}]: id})}
ref={conRef}
>
<ReactImage
{...otherProps}
onLoad={handleOnLoad}
onClick={
async () => {
setState([...previewImgs]);
setTimeout(() => window.wxPreviewActive())
}
}
/>
{state && (
<Preview
openButton={{ dom: .img-${id}, index: previewIndex || id }}
list={state}
fullClose={true}
closeListen={
async () => {
setState(null);
}
}
/>)}

)
}, [state]);

index.es.js:1197 Uncaught TypeError: Cannot read property 'unbindEvents' of null
at _shout (index.es.js:1197)
at _unbindEvents (index.es.js:1339)
at Object.close [as onTap] (index.es.js:1760)
at HTMLDivElement._onControlsTap (index.es.js:4622)

Cannot read property 'destroy' of null

image

image
你好,想请教一下,我在移动端的文章详情使用了这个插件,预览关闭后,如果要返回上一页面或者去新的页面,就报Cannot read property 'destroy' of null这个错

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.