Code Monkey home page Code Monkey logo

Comments (6)

rohitgupta3 avatar rohitgupta3 commented on May 23, 2024 1

Will try to check it out soon and let you know!

Separately, as a random heads-up, when I did a fresh npm install and got react-sortable-tree v0.1.7 with dependency react-virtualized v8.6.1, the list broke (I would get a blank screen as I scrolled down since the DOM did not update the list items). Think the issue is react-virtualized because react-sortable-tree v0.1.7 with react-virtualized v8.5.3 worked fine.

Don't quote me on any of this though as I did it quickly then reverted, but may be useful info if you find yourself in a situation where you find scrolling down is not working.

from react-sortable-tree.

fritz-c avatar fritz-c commented on May 23, 2024

I thought about adding this functionality, but held back as I didn't know what the usefulness of that information would be. If you don't mind, could you explain in a bit more detail why you need to know the parent?
In any case, I'll close the issue, so no worries.

from react-sortable-tree.

rohitgupta3 avatar rohitgupta3 commented on May 23, 2024

Sure - though this issue is not an issue anymore, if it's interesting / relevant I have hierarchical product data. So bananas and apples could be children of fruits, celery and cucumbers are children of vegetables. If, in the database, product A is incorrectly the child of product X and should instead be the child of product Y, then after an admin drags and drops A under Y, I need to tell the database that the parent of A should be Y. Is there an easier way of doing this than finding the parent (which was pretty straightforward anyway)?

from react-sortable-tree.

fritz-c avatar fritz-c commented on May 23, 2024

Ah, whenever the node position is changed, it gets saved immediately on the server. That makes sense.

This seemed like a common enough issue that I just added this functionality in v0.1.7. Let me know if it works for you.

Thanks for making the issue!

from react-sortable-tree.

fritz-c avatar fritz-c commented on May 23, 2024

Thanks for the tip about the broken scrolling. I fixed it in v0.1.8. Your promptness probably saved me from like three new issues about it 👍

from react-sortable-tree.

rohitgupta3 avatar rohitgupta3 commented on May 23, 2024

Happy to help! Thanks again for your awesome work

from react-sortable-tree.

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.