Giter VIP home page Giter VIP logo

Comments (6)

argnist avatar argnist commented on May 30, 2024 2

I get an error only when use it in Storybook:

Cannot read property 'parentNode' of undefined
TypeError: Cannot read property 'parentNode' of undefined
at Resizable.get$$1 (http://localhost:9009/static/preview.bundle.js:93598:29)
at Resizable.componentWillUnmount (http://localhost:9009/static/preview.bundle.js:93315:27)

It points to return this.resizable.parentNode;
this.resizable is undefined in this position.

from re-resizable.

arcifius avatar arcifius commented on May 30, 2024 1

@bokuweb i'll provide a project soon... the base element was messing up my layout so i've added an extra css to it display: none but i was using another libraries too... Anyways i'll try to make a reproduced version as soon as possible, thanks for your attention on this issue.

from re-resizable.

arcifius avatar arcifius commented on May 30, 2024

I don't know why u are using this base thing but

//parent.removeChild(base);

solved the issue...

from re-resizable.

bokuweb avatar bokuweb commented on May 30, 2024

@arcifius Thanks for your report. I add workaround for now and published as v4.0.2.
If it is not fixed, could you please provide reproduced project on webpackbin??

https://www.webpackbin.com/bins/-Kvnrpd3GSG6-z0tpgH_

base element is necessary to calculate percentage of resizable.

from re-resizable.

bokuweb avatar bokuweb commented on May 30, 2024

@arcifius Thanks :)

from re-resizable.

bokuweb avatar bokuweb commented on May 30, 2024

Could you please try v4.4.1 ?

from re-resizable.

Related Issues (20)

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.