Git Product home page Git Product logo

Comments (4)

oliviertassinari avatar oliviertassinari commented on August 17, 2024

Would using the index property of <SwipeableViews /> works?

from react-swipeable-views.

andrzey avatar andrzey commented on August 17, 2024

Unfortunately that doesnt solve the issue.

from react-swipeable-views.

funkyeah avatar funkyeah commented on August 17, 2024

Is this really a bug? Seems like this is a state management issue. Each item in the list needs to be given a unique identifier and the state/index of each swipeable should be associated with that identifier. Then when an item is deleted from the list the state is not tied to its position in the list. If you want to reset the index of all slides after an event like pressing of a delete button then that should be done from the list controller.

from react-swipeable-views.

oliviertassinari avatar oliviertassinari commented on August 17, 2024

The problem is that item3 that now is item2 after I deleted one item have its slideIndex set to the same as the item that was deleted from the list.

@funkyeah Oh, you are right, I have overlooked this sentence. That's proving that it's working fine.
Thanks 👍 .

from react-swipeable-views.

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.